Questions tagged [dynatree]

Dynatree is a JavaScript tree view plugin for jQuery with support for persistence, keyboard, multiple selection, drag and drop, and dynamic Ajax loading.

Dynatree is a JavaScript tree view plugin for jQuery with support for persistence, keyboard, multiple selection, drag and drop, and dynamic Ajax loading.

Main features

  • Optimized for large dynamic trees (DOM elements are only created when really needed).
  • Programmable through a rich object oriented interface.
  • Support for lazy loading and Ajax.
  • Checkboxes and hierarchical selection
  • Supports drag and drop.
  • Support for persistence.
  • Keyboard aware.
  • Initializes from HTML code, JSON, or JavaScript objects.

Quick start

  • Include jQuery and dynatree libraries.
  • Add a element where the tree should appear.
  • Initialize the dynatree object when the page is loaded.

LINKS

246 questions
2
votes
3 answers

jQuery Dynatree Plugin - how to disable a node?

http://wwwendt.de/tech/dynatree/index.html Is it possible to disable individual nodes? If so, how?
sarsnake
  • 26,667
  • 58
  • 180
  • 286
2
votes
1 answer

How to get selected nodes when dynatree is loaded using persistence

Using persistence with dynatree, when the tree is re-loaded, I want to get all selected nodes, in order to send them in a request. How can I do that ? I've only found a way to get selected nodes with the onSelect event.
JPJ
  • 29
  • 1
  • 3
2
votes
2 answers

Create a dynamic treeview with json data - dynatree in jsp

I have a table in database like this: id - title - parentID ----------------------------- 1 Root null 2 item 1 1 3 item 2 1 4 item 3 1 5 item 3.1 4 this should create…
Lithium
  • 589
  • 2
  • 11
  • 24
2
votes
3 answers

How to get Dynatree's parent node details

Is there any way to find dynatree's root node details? Supposed tree has 5 level and i selected fifth level's node . I want to get selected nodes and its parents details till root. Thanks in advance.
user2732572
  • 21
  • 1
  • 3
2
votes
1 answer

fancytree problems - "Uncaught Error: Assertion failed: expected array of children"

I'm trying to migrate from dynatree to fancytree. Even if I try returning the simplest json array from my webmethod I get the error in the subject title: "Uncaught Error: Assertion failed: expected array of children" The json returned as shown in…
TheMook
  • 1,531
  • 4
  • 20
  • 58
2
votes
3 answers

How best to wrap the Dynatree tree widget inside an Angular Directive?

I understand the basic features of Angular Controllers and Directives but I am struggling to see how I can best apply them to wrap the Dynatree tree widget that we use. The issue is that Dynatree normally has its own means of retrieving data via…
Dud
  • 361
  • 1
  • 3
  • 6
2
votes
1 answer

Recursive Hierarchical Joins with Depth

I followed this Recursive Hierarchical Joins in C# and LINQ post to implement recursive join extension to show a tree view data in my application. As i have 15000 tree nodes, the jQuery DynaTree at client side preparation takes lot of time (50 Secs)…
Billa
  • 5,226
  • 23
  • 61
  • 105
2
votes
1 answer

Dyna tree ajax load callback

I currently load my dyna tree from using JSON as so: $(document).ready(function () { // Loads tree $("#TreeManGrp").dynatree({ initAjax: { url: "/Terminals/Refresh/" }, onActivate: function (node) { if (node.data.href)…
DavidB
  • 2,566
  • 3
  • 33
  • 63
2
votes
0 answers

Remove all selected nodes in dynatree

I want to remove all selected nodes from dynatree? But it throws an error if you delete a folder before the child. How can i delete the list of selected nodes in order of leaf nodes first? for (var i = 0; i < selectedNodes.length; i++) { …
blue_jack
  • 31
  • 1
2
votes
1 answer

How to get selectable dynatree output as JSON?

I am have created a selectable JQuery Dynatree object, and now what I want are two things: pass the Dynatree selection result into JSON and pass to another tree as a preview. post the JSON format data from the form to call related web services. …
anIBMer
  • 1,159
  • 2
  • 12
  • 20
2
votes
1 answer

expanding keypath with lazyloading

I have a full tree with multiple items and multiple levels, the tree is build with an ajax call and uses lazy nodes So now i want to add the function so my tree can load and select and item if i give the full path, but before i can select the item i…
acrobat
  • 2,179
  • 2
  • 27
  • 35
2
votes
1 answer

Dynatree slow when rendering large trees

I'm looking for hints on how to render faster large trees with Dynatree I just gave a try to the Dynatree jquery plugin. I try to render a pretty large tree : Root has exactly 7592 child nodes, something like 10 levels deep from root On my PC with…
fredoche
  • 63
  • 7
2
votes
0 answers

How to delete and add nodes to/from Dynatree prog

how to delete and add nodes to/from Dynatree without disturbing other node? I have a Dynatree with check box And a user can add / remove nodes from a list of nodes in a pop up. While updating the data should be added / remove with out disturbing the…
user1441304
  • 49
  • 1
  • 5
2
votes
4 answers

How to use jQuery to select text inside anchor tags

I want to select the a tag and display its text when clicked. In another word, when I click the first link - "One", I want to display its text "One" using alert. When I click the second link - "Example", I want to display the text "Example" using…
Viswa
  • 3,211
  • 5
  • 34
  • 65
2
votes
3 answers

Why does my div show vertical scrollbars although there is enough vertical space

I am using google chrome 19.x or IE9.x I have set the Html5 Doctype. I have a jquery dynatree plugin inside my TreeDiv. Although there is enough space to show more tree items vertically without the need to scroll, those scrollbars are visible. Why…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
1 2
3
16 17