We have a project where users can add/remove RadPanes to a RadDocking control, which contain controls, etc. The users can also save their layout and then load it back when they next run the silverlight app.
I have two questions:
1) I'm using the "Close" event on the RadDocking control to capture when the user wants to remove a RadPane from the docking control, then I iterate through the panes, find each "hidden" pane and remove it from it's parent. I also check to see if the parent group control contains any other panes and remove it as well.
My problem is that when saving the layout, the XML string still contains things about the removed group and the split container (pane does seem to be removed though). Is this the correct direction to remove a RadPane, or is there a better way which I'm missing? (I'm concerned this will grow and grow with unwanted XML markup and bulk down the loading process).
Sorry to make this long, but
http://www.telerik.com/community/forums/silverlight/docking/bug-docking-not-cleaning-up.aspx seems to talk about this issue beign fixed, but I'm still having the same problem with 2011 Q1 control.
2) The second question is about adding/loading panes. Adding a RadPane is easy and I use the Spliter/Group/Pane controls for this, but when loading the XML layout, I first programmatically create each RadPane in the docking control then load the XML layout which repositions everything. This does work, but I feel it's a bit clunky and I'm not really happy with doing it this way. Is there a better way? (I did think about loading the panes in a hidden state, loading the XML, then iterate through and show them too, which might be better)
Thanks so much in advance... David
I have two questions:
1) I'm using the "Close" event on the RadDocking control to capture when the user wants to remove a RadPane from the docking control, then I iterate through the panes, find each "hidden" pane and remove it from it's parent. I also check to see if the parent group control contains any other panes and remove it as well.
My problem is that when saving the layout, the XML string still contains things about the removed group and the split container (pane does seem to be removed though). Is this the correct direction to remove a RadPane, or is there a better way which I'm missing? (I'm concerned this will grow and grow with unwanted XML markup and bulk down the loading process).
Sorry to make this long, but
http://www.telerik.com/community/forums/silverlight/docking/bug-docking-not-cleaning-up.aspx seems to talk about this issue beign fixed, but I'm still having the same problem with 2011 Q1 control.
2) The second question is about adding/loading panes. Adding a RadPane is easy and I use the Spliter/Group/Pane controls for this, but when loading the XML layout, I first programmatically create each RadPane in the docking control then load the XML layout which repositions everything. This does work, but I feel it's a bit clunky and I'm not really happy with doing it this way. Is there a better way? (I did think about loading the panes in a hidden state, loading the XML, then iterate through and show them too, which might be better)
Thanks so much in advance... David