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

How do i copy a Node having set of subnodes when move is disabled ?

0 Answers 36 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
prasad
Top achievements
Rank 1
prasad asked on 13 Oct 2012, 05:57 PM
Hi Team,

I have a created a tree using JsonObject dynamically.

$("#treeview").kendoTreeView({
                template:kendo.template($("#treeview-template").html()),

                checkboxTemplate:kendo.template($("#treeview-checkbox-template").html()),
                hasChildren:true,
                dataSource: <?=$jsonDataForTree?>,
                EnableCaching:false
            });

now that i have a tree , I would like to have a copy paste functionality for this same.
1. I have disabled the move option as this not required as per our requirements.
2. I have created two buttons "Copy" and "Paste"
                   Usage : select a node and go to other node and simply click Paste button. This would copy the entire source(including the nested nodes) to destination.

How can this be achieved ? your help is highly appreciated.

Thanks in advance,
Prasad.

No answers yet. Maybe you can help?

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