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

Client side question - drag drop in root

1 Answer 16 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Karl Wilkens
Top achievements
Rank 1
Karl Wilkens asked on 22 Oct 2008, 04:17 PM
Hi,

We are using the client side objects and this works well for drag and drop except if we are performing operations in the root. I am not sure how to handle this - as we normally get the parent using get_parent but for root nodes this throws a javascript error. Is there a safer way to test to see if you are dragging to the root and thereby, determining that the destination for the drop is in the root? Thanks.

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 23 Oct 2008, 06:47 AM
Hi Karl Wilkens,

You can check this KB article:
(ID#910) How to distinguish whether node.get_parent returns the parent node or the parent treeview?

I hope this helps.

Regards,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TreeView
Asked by
Karl Wilkens
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or