[Solved] How to Hide a Panel

1 Answer 17 Views
CollapsiblePanel Panel SplitContainer
Simon
Top achievements
Rank 1
Simon asked on 21 Mar 2026, 05:17 PM | edited on 21 Mar 2026, 05:21 PM

Hi there, I have three panels and I want to hide the centre panel - how do I do this please?

I don't want to just make it zero width - I would like to hide it totally (including the sizing handle) until I need it.

Here is what I have tried thus far...

Me.mSplitContainer.SplitPanels("panFilter").SplitPanelElement.Visibility = Telerik.WinControls.ElementVisibility.Collapsed

Thank you in advance.

Simon

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 23 Mar 2026, 03:13 PM

Hi, Simon,

You can use the following code snippet to hide the panels, but keep in mind that the space reserved for it would remain in RadSplitContainer.

 this.radSplitContainer1.SplitPanels[1].Visible = false;
 //or
 this.radSplitContainer1.SplitPanels[1].SplitPanelElement.Visibility= ElementVisibility.Collapsed;

If you need to remove the space for the panel as well, you can remove this panel from the SplitPanels collection:

this.radSplitContainer1.SplitPanels.RemoveAt(1);

Thus, you will have only two panels. Later, if you need it again, you can insert the split panel at the specified position.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Simon
Top achievements
Rank 1
commented on 23 Mar 2026, 03:38 PM

This is amazing - thank you.

If I have a Minimum width set, does this code ignore that or do I have to remove the Minimum width please?

Thank you...

Simon

Nadya | Tech Support Engineer
Telerik team
commented on 23 Mar 2026, 04:03 PM

Hello, Simon,

I am not familiar with your exact setup. Can you please clarify which Minimum width you have set? Can you provide a code snippet of what you have on your end?

Tags
CollapsiblePanel Panel SplitContainer
Asked by
Simon
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or