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

removing the nodes from source tree view

1 Answer 90 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Venkatramanan
Top achievements
Rank 1
Venkatramanan asked on 27 Jan 2011, 11:20 AM
hi telerik team,
   i have placed two tree views as source and destination respectively in my project. source tree view nodes are check box enabled nodes. user can check the nodes and can able to move to the destination tree view. there's a button called remove. while clicking the remove button, the selected node in the destination tree view is removed. until this i have done, but, i need the uncheck the same node, which is removed from the destination tree view. i dont know how to do that. can anyone please help me by providing the code or an example for doing so..
plz help,

thanks,
Venkat.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 01 Feb 2011, 05:00 PM
Hi Venkatramanan,

Please find the attached project and give it a try. Basically, It uses GetitemByPathMethod supposing that source and destination tree have identical structure. If you need to synchronize this structure when you drag a treeNode (or subtree) from the left tree(the source) and the right tree (destination ) , you can use the ItemPrepared event of the RighTtree , make a deep copy of the Item (subtree) you are dragging and place it at the corresponding place in the left tree. Feel free to ask if you need further assistance.

Regards,
Petar Mladenov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
TreeView
Asked by
Venkatramanan
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or