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

Drag and Drop

4 Answers 53 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Sampath
Top achievements
Rank 1
Sampath asked on 22 Jun 2010, 11:14 AM
Hi All,
Can any one tell me hoe to restrict the drag and drop of the radtreeviewitems. (ie., it should not allow to be dropped as an child of another item). The drop should happen only before or after rootnodes.


TIA

Regards
Sampath

4 Answers, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 25 Jun 2010, 09:57 AM
Hello Sampath,

Attached is a sample project with the desired outcome. If you have further questions feel free to ask.

On a side note, I'd like to inform you that we've just released an online tool that allows you to reduce the size of your Silverilght applications. For more information, please visit http://blogs.telerik.com/blogs/posts/10-06-10/telerik_assembly_minifier.aspx

Kind regards,
Viktor Tsvetkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sampath
Top achievements
Rank 1
answered on 25 Jun 2010, 01:08 PM
Hi
   Thanks for the feed back the example helped but it doesn't solve the problem. It still allows the rootitem to be dropped in to as the sub of another root item. Can u pls help me around this problem..


TIA
0
Viktor Tsvetkov
Telerik team
answered on 28 Jun 2010, 02:01 PM
Hi Sampath,

Attached is the modified project. Review it and tell me if this is the desired outcome. For more information about drag and drop within treeview you could read this article and about RadDragAndDropManager this article.

Sincerely yours,
Viktor Tsvetkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sampath
Top achievements
Rank 1
answered on 29 Jun 2010, 07:41 AM
Hi Viktor,
      Thanks for the reply. it helped me to solve the issue. Likewise can you please tell me how to keep the Check box in checked
state after its child have been reordered(drag and drop).

Regards
Sampath
Tags
TreeView
Asked by
Sampath
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Sampath
Top achievements
Rank 1
Share this question
or