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

How to set width and height of SplitContainer and nested splitter Container

1 Answer 156 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Fanindra
Top achievements
Rank 1
Fanindra asked on 27 Feb 2015, 02:56 PM
Hi,

We are saving layout and generating xml using Telerik API like the link below.

http://docs.telerik.com/devtools/silverlight/controls/raddocking/features/save-load-layout.html

now for generating layout using xml dynamically we are facing issue in setting height and width for RadSplittterContainer and nested RadSplittterContainer.

Sometime while generating xml is it adding tags like SpliiterChange  when draging the panes in layout.

Our problem is we are not able to set SpliiterChange property either. So is there any way we can generate height or width or some relative position /size to set.

Layout gernerating dynamically using, 
Looping all node of RadDocking contains RadSplitContainer or Nested RadSplitContainers.And each RadSplitContainer conatins RadPane.likewise we are iterate through each item and gernerating all components. We successfully able to generate all the panes only issue in setting width/Height properly.

Please provide related sample or solution to tackle this issue.


Thanks,
Fanindra

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 04 Mar 2015, 08:56 AM
Hello Fanindra,

We are not sure we understand what the issue you are experiencing exactly is.

By design the RadDocking control's save/load layout funtionality saves and loads the current state of any RadPane, RadPaneGroup and RadSplitContainer instance. The funtionality saves only layout specific properties if no SerializationTag is set to the element instance. This is done in order to generate a light weight layout XML. In most scenarios it is important to set the RadDocking.SerializationTag on any RadPane, RadPaneGroup or RadSplitContainer which contains important properties which should be saved in the layout.

In all of our tests the Width and Height properties of any RadSplitContainer are correctly saved and loaded. The SplitterChange property is an internal property of our ProportionalStackPanel which is used to maintain the size differences between the parts of the RadDocking control.

Could you describe to us in more details the specific scenario where the Width and Height properties of an RadSplitContainer instance is not persistence by save/load layout functionality?

Regards,
Vladi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Docking
Asked by
Fanindra
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or