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

How to persist the object of RadTreeNode across postbacks?

1 Answer 35 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Dev
Top achievements
Rank 1
Dev asked on 29 Aug 2012, 06:09 AM
Hi !!

I have a RadTreeview, in which I allow to move or copy nodes across the same treeview. The concept is on Node drop I return a jQuery dialog box that asks "What operation do you want to perform?" with link buttons Move, Copy or Cancel. On clicking move button I want to move the selected nodes with hierarchy below the destination node, On clicking copy button I want the selected nodes remains on their same position but a copy of them created below the destination node. So that I want the object of Source RadTreeNode(s), destination RadTreeNode and drop position. As I click the move or copy button, it make the page_load() event in which I lost that objects. Can any one have idea how to persists it? Awaiting for your valuable response.

Thanks,
Dev

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 03 Sep 2012, 02:54 PM
Hello Dev,

I did a sample project, which is illustrating a scenario similar to what you are trying to achieve. You can find it attached to this response. I am using RadWindow for the dialog box and RadButton for its buttons. Here you can find more information about RadWindow control and here - for RadButton control.

I hope you will find this project useful and will help you out.


Kind regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Dev
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or