RadDock and dynamic user controls

2 posts, 0 answers
  1. Marco
    Marco avatar
    8 posts
    Member since:
    Sep 2012

    Posted 25 Jun 2008 Link to this post

    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,
  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 26 Jun 2008 Link to this post

    You can create RadDock after PageInit(onNodeDrop), but you should recreate it in PageInit.

     A similar example created by me is available here:
Back to Top