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

radCollapsiblePanel inside radSplitContainer

2 Answers 244 Views
CollapsiblePanel
This is a migrated thread and some comments may be shown as answers.
Deepak
Top achievements
Rank 1
Deepak asked on 14 Jul 2014, 09:26 AM
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. 

Cheers,
Deepak

2 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 Jul 2014, 06:30 AM
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();
this.radPanel1.Controls.Add(collapsiblePanel);
collapsiblePanel.Dock = DockStyle.Left;
collapsiblePanel.ExpandDirection = RadDirection.Right;
 
RadPanel container = new RadPanel();
this.radPanel1.Controls.Add(container);
container.Dock = DockStyle.Fill;
container.BackColor = Color.Red;

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

Regards,
Desislava
Telerik
 
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.
 
0
Deepak
Top achievements
Rank 1
answered on 12 Aug 2014, 10:36 AM
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 :) 

Regards,
Deepak
Tags
CollapsiblePanel
Asked by
Deepak
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Deepak
Top achievements
Rank 1
Share this question
or