Welcome Guest Search | Active Topics | Sign In | Register

How to Drag&Drop between 2 TreeViews Options
Mercedes
Posted: Tuesday, June 8, 2010 12:01:52 PM
Rank: Member
Groups: Member

Joined: 8/23/2007
Posts: 12
Hi,

I have been reviewing the drag&drop demo and the Javascript API but I don't know how to implement between two treeviews.

I have one treeview with the a field list (Level 0: Groups and Level 1 fields) I have created a second treeview to move the fields to use in the export process.

This treeview has a single level 0 (Selected Fields) so every item dropped should be placed below this group. This treeview items can be reordered.

I didn't see in the documentation how to add by Javascript a tree node with the information of the dragged tree node.

Any advice????

Thanks in advance...Antonio

eo_support
Posted: Tuesday, June 8, 2010 12:06:41 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will not be able to do that. You can drag a tree node to another control but you can not dynamically create new TreeNode on the client side, which means you can drag and drop a node from TreeView1 to TreeView2, but TreeView2 won't take it as a new node. The closest you can get is to drag from TreeView to Grid because Grid does allow you to dynamically create new rows on the client side:

http://demo.essentialobjects.com/Default.aspx?path=TreeView\_i2\_i1

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.