I'm trying to build a page that uses dynamically-created Docks. I've set up my RadDockLayout and RadDockZone as described in the examples.
I'm creating a new Dock and adding it to the DockZone in a button event function, and that seems to be working.
I'm repopulating the DockLayout from a List<DockState> in Page_Init(), and that seems to be working. My dynamic Docks are surviving post-backs with contents intact.
What I can't figure out is where to load Docks from the database.
I have a RadTreeView on the same page, and what is supposed to be happening is that for whichever node in the tree is selected, that node's set of Docks are displayed in the DockZone. Which means I need to clear the Docks that were added in Page_Load, empty the List<DockState> (I think, it may be that it'd be overwritten the next time OnSaveDockLayout is fired), and then I need to create Docks from the appropriate database records, and add them to the DockZone.
I can't quite figure out how to do either. The first time I select a menu no Docks show up, and the second time I get an "multiple controls with the same ID "RodDock0" were found" error.
I'm creating a new Dock and adding it to the DockZone in a button event function, and that seems to be working.
I'm repopulating the DockLayout from a List<DockState> in Page_Init(), and that seems to be working. My dynamic Docks are surviving post-backs with contents intact.
What I can't figure out is where to load Docks from the database.
I have a RadTreeView on the same page, and what is supposed to be happening is that for whichever node in the tree is selected, that node's set of Docks are displayed in the DockZone. Which means I need to clear the Docks that were added in Page_Load, empty the List<DockState> (I think, it may be that it'd be overwritten the next time OnSaveDockLayout is fired), and then I need to create Docks from the appropriate database records, and add them to the DockZone.
I can't quite figure out how to do either. The first time I select a menu no Docks show up, and the second time I get an "multiple controls with the same ID "RodDock0" were found" error.