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

RadDock and dynamic user controls

1 Answer 73 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Marco asked on 25 Jun 2008, 04:16 PM
Hi, I'm building an application that uses RadDocks and RadTreeView.

I want the user to drag and drop a RadTreeNode (that identifies a user control) onto a RadDockZone. After this dragging, a new user control is istantiated into a dynamic RadDock.

Now this user controls expose a lot of properties that I want to set and I want them to persist on postback.I know I have to instantiate the dynamic controls during Page_Init but if I use the HandleDrop event, I can instantiate it only after the Page_Load.

Now the question is: how can I instantiate the control in the page init?

Thanks a lot,
Marco

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 26 Jun 2008, 04:44 PM
You can create RadDock after PageInit(onNodeDrop), but you should recreate it in PageInit.

 A similar example created by me is available here:
http://www.telerik.com/community/forums/thread/b311D-beahkt.aspx
Tags
Dock
Asked by
Marco
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or