Resize on Runtime to fit Content

5 posts, 0 answers
  1. Marc
    Marc avatar
    15 posts
    Member since:
    Apr 2013

    Posted 27 Jun 2014 Link to this post


    i have a Problem with RadSplitContainer

    I have a SplitContainer with two SplitPanels orientated vertically.

    In the upper Panel i want to Add content at Runtime.
    In the lower Panel i have a GridView.

    I need the upper Panel to fit the content i will add, and the lower Panel to take the available space left.
    Did not get it working on my machine for a couple of days.

    Thx for support
  2. Marc
    Marc avatar
    15 posts
    Member since:
    Apr 2013

    Posted 01 Jul 2014 Link to this post

    Got it working somehow, dont even know how
  3. George
    George avatar
    500 posts

    Posted 02 Jul 2014 Link to this post

    Hello Marc,

    I am glad that you were able to resolve your problems. 

    Should you have questions regarding this matter, do not hesitate to write back. You can also provide sample code if that is required.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  4. Hossein
    Hossein avatar
    3 posts
    Member since:
    Dec 2014

    Posted 15 Dec 2014 Link to this post

    It is my problem,too
    Can you explain It?
    How I can change splitter width (splittDistance) on runtime?
  5. Dimitar
    Dimitar avatar
    2916 posts

    Posted 18 Dec 2014 Link to this post

    Hello Hossein,

    Thank you for writing.

    The size of the panel can be changed like this:
    private void radButton1_Click(object sender, EventArgs e)
        splitPanel1.SizeInfo.SizeMode = Telerik.WinControls.UI.Docking.SplitPanelSizeMode.Absolute;
        splitPanel1.SizeInfo.AbsoluteSize = new Size(150, 150);

    More information can be found here: Building a layout of RadSplitContainers programmatically.

    The splitter width can be changed by setting the corresponding property:
    radSplitContainer1.SplitterWidth = 20;

    Please let me know if there is something else I can help you with. 

    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.

Back to Top