SplitContainer & Collapasble Panels

7 posts, 0 answers
  1. Michael
    Michael avatar
    3 posts
    Member since:
    Mar 2012

    Posted 22 Mar 2014 Link to this post

    Hi,

        I'm looking for a way to have a tree dock to the left side in a collapsible panel, and a panel on the right side to fill.  If the left side panel is collapsed I'd like the right side to consume the free space?   Any hints on how to do this?

    thanks
    Mike
  2. George
    Admin
    George avatar
    500 posts

    Posted 26 Mar 2014 Link to this post

    Hello Michael,

    Thank you for contacting Telerik Support.

    This layout can be achieved by adding a RadTreeView with its DockStyle set to Fill, and a RadCollapsiblePanel with DockStyle - Left. You also will need to set its ExpandDirection to Right. You must keep in mind that due to the specifics of WinForms layout you need to first add the RadTreeVieand then the RadCollapsiblePanel​:
    this.tree = new RadTreeView()
    {
        Parent = this,
        Dock = DockStyle.Fill
    };
     
    this.panel = new RadCollapsiblePanel()
    {
        Parent = this,
        Dock = DockStyle.Left,
        ExpandDirection = RadDirection.Right
    };

    You can also refer to the attached project.

    Do not hesitate to write back, should you have further questions.

    Regards,
    George
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Florian
    Florian avatar
    14 posts
    Member since:
    Dec 2014

    Posted 11 Aug 2015 in reply to George Link to this post

    Hi George,

     

    i need the RadCollapsiblePanel (rcp) to be wrapped in a RadSplitContainer(rsc). If the rcp is expanded the Splitter should be available and the rcp should react on these changes. If the rcp is collapsed then tne Splitter should not be available 

  5. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 11 Aug 2015 Link to this post

    Hello Florian,

    Thank you for writing.

    I am not sure what is the complete requirement. However, I suppose that the following forum post may be useful for your case: http://www.telerik.com/forums/radsplitcontainer-and-radcollapsiblepanel-collapse-expand. If it is not applicable for your scenario, it would be greatly appreciated if you can give us more details about the exact requirement that you are trying to achieve. Thus, we would be able to think about a suitable solution and assist you further. Thank you in advance.

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Florian
    Florian avatar
    14 posts
    Member since:
    Dec 2014

    Posted 13 Aug 2015 in reply to Dess Link to this post

    Thanks, thats what i needed.
  7. Ants
    Ants avatar
    3 posts
    Member since:
    Dec 2012

    Posted 01 Mar in reply to Dess Link to this post

    Hi Dess,

    Sorry to dig up an old post but I came here from Google. Your link http://www.telerik.com/forums/radsplitcontainer-and-radcollapsiblepanel-collapse-expand appears to be 404ing. Do you have an updated URL where I can see the solution?

    I want to be able to have a RadSplitContainer with resizable panels but I want the panels to contain a RadCollapsiblePanel that will also shrink/grow the parent RadSplitPanel. Is this possible?

    This is so that if the user can still shrink the panel if they don't want to collapse the whole panel but also be able to collapse it if they need.

  8. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 02 Mar Link to this post

    Hello Ants,

    Thank you for writing.

    Currently, the link is not reachable because sometimes we move a forum post to our support ticketing system (which is a private communication channel) to avoid sharing confidential information. As to the question at hand, I would recommend you to use RadSplitContainer which supports collapsing of its panels as well as resizing. You can refer to our Demo application >> SplitContainer >> Collapsing Panels example.

    I hope this information helps. Should you have further questions I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready