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

2 posts, 0 answers
  1. Fanindra
    Fanindra avatar
    4 posts
    Member since:
    May 2013

    Posted 27 Feb 2015 Link to this post


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

    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.

  2. Vladi
    Vladi avatar
    743 posts

    Posted 04 Mar 2015 Link to this post

    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?


    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.

  3. DevCraft banner
Back to Top