This is a migrated thread and some comments may be shown as answers.

how to insert node in the middle of the tree items dynamically

0 Answers 40 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
batusai
Top achievements
Rank 1
batusai asked on 16 Apr 2010, 09:01 AM
good day,

how can i insert Item( treenode ) in the middle of tree using jquery

example of tree

Level 0
  - level 1.1
  - level 1.2
-level 2.1
-level 2.2
 - level 1.3
 - level 1.4
  -level 2.3

how can i insert it like this

Level 0
  - level 1.1
  - level 1.2
-level 2.1
-level 2.1.1 <----------------inserted node
-level 2.2
 - level 1.3
 - level 1.4
  -level 2.3

and also how can i get the value of the selected item 
it seems the solution posted in the thread "Getting the value of Node in Treeview"

function onSelect(e) {
$(e.item).closest('.t-item').find(':input[name*="Value"]').val();
}


is not working.

Thanks in advance and GOD BLESS


Tags
TreeView
Asked by
batusai
Top achievements
Rank 1
Share this question
or