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

SplitContainer & Collapasble Panels

6 Answers 148 Views
CollapsiblePanel
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 22 Mar 2014, 09:59 PM
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

6 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 26 Mar 2014, 02:39 PM
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.

 
0
Florian
Top achievements
Rank 1
answered on 11 Aug 2015, 07:49 AM

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 

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 11 Aug 2015, 09:41 AM
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
0
Florian
Top achievements
Rank 1
answered on 13 Aug 2015, 12:46 PM
Thanks, thats what i needed.
0
Ants
Top achievements
Rank 1
answered on 02 Mar 2016, 12:50 AM

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.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Mar 2016, 09:52 AM
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
Tags
CollapsiblePanel
Asked by
Michael
Top achievements
Rank 1
Answers by
George
Telerik team
Florian
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Ants
Top achievements
Rank 1
Share this question
or