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
3
votes
1 answer

Dynatree - How To Transform The json Coming From Server?

I'm looking for some help with dynatree plugin. I need to transform the json coming from the server to make it dynatree compatible (I'm not allowed to do it on the server side), This below apparently doesn't work: initAjax: { …
mvovchak
  • 291
  • 5
  • 13
3
votes
1 answer

js dynatree plugin from

I want to disable selection of all nodes, except leafs. I mean, user should be able to select (radiobutton check) nodes only if it's leaf node of the tree. I see the docs and is indicated to use: {title: "Sub-item 4.3 (hideCheckbox)", hideCheckbox:…
jfunez
  • 397
  • 6
  • 23
3
votes
3 answers

Dynatree with ASP.NET MVC

Has anybody got any examples of using the Dynatree plugin with MVC? I have been wrestling with it without much progress. I have an action method which returns a JsonResult (but selects all columns in the underlying table, not sure if this is the…
SimpleUser
  • 1,341
  • 2
  • 16
  • 36
3
votes
1 answer

Dynatree - javascript Add Edit & Delete node

Need your help and Thanks alot in advance. I am trying to do the Add, Edit and delete the node using Dyna tree. Following things am trying. When i click Add button by selecting any node then new node with textbox to be added and should take node…
Mohammed Farooq
  • 227
  • 1
  • 5
  • 23
3
votes
2 answers

Folders Wrapping with Dynatree

I have installed dynatree 1.2.4 on my web site to display a series of folders from an email archive solution. The folders are retrieved via AJAX and then formatted before the dynatree code is called function folders_loaded(json) { …
Robbert
  • 6,481
  • 5
  • 35
  • 61
2
votes
3 answers

jQuery - dynatree lazy loading and multi-hier (type 3) selectMode

I'm using dynatree with the selectMode set to 3 (multi-hier). I'm also using checkboxes, so when you select a folder, all children below it are also selected. I have have (and need) lazy loading enabled. The problem is that dyna tree does not load…
bradvido
  • 2,743
  • 7
  • 32
  • 49
2
votes
1 answer

how to save dynatree structure after drag and drop

I can't figure out how to save the new dynatree after dragging and dropping node to it. I have 2 dynatree and I'm dragging from one to another but i don't know if i can get the info of the structure of the new tree. my first tree…
HRI
  • 91
  • 4
  • 13
2
votes
1 answer

Dynatree .sortChildren

I have two instances of dynatree objects on a page. I have the trees populate from various XML data. There is an onChange event which has the trees change the data they are using. The last thing I do during the change is sort the data. When I…
claydiffrient
  • 1,296
  • 3
  • 19
  • 35
2
votes
2 answers

jQuery DynaTree not working

I am trying to get a DynaTree (first use of it) working w/o luck - the "tree" just shows up as a regular HTML list. I'm sure it's something trivial but I'm not seeing it. Here is my file structure: This is the page (result.jsp) that the tree is…
Mark
  • 1,988
  • 2
  • 24
  • 42
2
votes
1 answer

Dynatree returns error when faced with more than 2000 items

I use dynatree and everything works fine but if a node has large number of items I get an error. I have read about setting enableUpdate(false); function but it also didn't help. Any ideas? var serviceParams = { Type: this._fieldName…
Alexandr
  • 5,460
  • 4
  • 40
  • 70
2
votes
4 answers

DynaTree has two highlighted nodes on right click after left click

My problem is whenever I left click a dynatree node then right click another dynatree node to display my context menu the node which was left clicked remains highlighted in blue so I end up with two nodes in blue. If I then right click successive…
ADB1779
  • 51
  • 1
  • 5
2
votes
0 answers

How to check check box in dynatree by id

i am having dynatree, whose node.data.key is in form of 'TD_1','TD_3','TD_7'. I am storing this id's into db. Then i am having dropdown, whose change event will give me that id i.e TD_3. Using which i have to select the…
2
votes
4 answers

JQuery DynaTree plugin - how to invoke hyperlink

I have a link on web page
  • mylink In my js script I have $(document).ready(function() { $("#tree").dynatree({ persist: true, onPostInit: function(isReloading, isError) { …
  • chz
    • 355
    • 1
    • 7
    • 21
    2
    votes
    1 answer

    Dynatree select first node as default selected node.

    I am creating dynatree. I want to set first node of dynatree to be selected on opening dynatree. I set select= tree in json for first element. but it does't work. I want to skip adding select property in json. It is better to get something on…
    Hemant Malpote
    • 891
    • 13
    • 28
    2
    votes
    3 answers

    How to set a specific icon for each node in dynatree

    I have a class that represents an icon. How can I use this class to show the icon that I want for the node instead of the default ones ?
    mathinvalidnik
    • 1,566
    • 10
    • 35
    • 57
    1
    2
    3
    16 17