radCollapsiblePanel inside radSplitContainer

3 posts, 1 answers
  1. Deepak
    Deepak avatar
    8 posts
    Member since:
    Jul 2014

    Posted 14 Jul 2014 Link to this post

    Hello all, 

    I am fairly new to Telerik. 
    I am looking to achieve the attached design in one of my projects. So to explain, there is a collapsible panel on the left which "Collapses" and "expands" and the panel on the right adjusts its width accordingly. 
    The two controls which came into my attention were radSplitContainer and radCollapsiblePanel. But I guess I cannot insert a radCollapsiblePanel inside a radSplitContainer.
    Is there any way I can achieve this.

    Please help. 

  2. Answer
    Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4169 posts

    Posted 17 Jul 2014 Link to this post

    Hello Deepak,

    Thank you for writing.

    You can add the RadCollapsiblePanel in the Controls collection for a main RadPanel and set its Dock property to Left. In addition, you can add another child RadPanel and dock it to Fill. Thus, collapsing/expanding the RadCollapsiblePanel automatically will adjust the right panel width:
    RadCollapsiblePanel collapsiblePanel = new RadCollapsiblePanel();
    collapsiblePanel.Dock = DockStyle.Left;
    collapsiblePanel.ExpandDirection = RadDirection.Right;
    RadPanel container = new RadPanel();
    container.Dock = DockStyle.Fill;
    container.BackColor = Color.Red;

    I hope this information helps. Should you have further questions, I would be glad to help.

    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.
  3. Deepak
    Deepak avatar
    8 posts
    Member since:
    Jul 2014

    Posted 12 Aug 2014 in reply to Dess | Tech Support Engineer, Sr. Link to this post

    Hi Desislava,

    I know I am too late in replying but better late than never. 
    You tip did helped me in getting the desired result. Thanks :) 

Back to Top