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

Hide Button of CollapsiblePanel

3 Answers 282 Views
CollapsiblePanel
This is a migrated thread and some comments may be shown as answers.
Ali Mohamad
Top achievements
Rank 1
Ali Mohamad asked on 24 Jan 2015, 08:21 PM
Hi,

Is there a way to hide the Expand/Collapse button and the recover the space it takes? I would be replacing its functionality with code that expands and collapses the panel, i.e. no need for the button..

Thank you
Ali

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Jan 2015, 08:18 AM
Hi Ali,

Thank you for writing.

Here is how to hide the header element of the collapsible panel:
radCollapsiblePanel1.CollapsiblePanelElement.HeaderElement.Visibility = ElementVisibility.Collapsed;

I hope this helps.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
sebastien
Top achievements
Rank 1
answered on 16 Dec 2020, 09:42 PM

It's an old post, but it's related.

Is it possible to disable the collapse button?

I'm using in a usercontrol that we have 2 differents use.

thanks

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 Dec 2020, 05:35 AM

Hello, Sebastien,

In order to hide only the collapsible button in RadCollapsiblePanel and keep the header visible, you can use the following code snippet: 

this.radCollapsiblePanel1.CollapsiblePanelElement.HeaderElement.HeaderButtonElement.Visibility = ElementVisibility.Collapsed;

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
CollapsiblePanel
Asked by
Ali Mohamad
Top achievements
Rank 1
Answers by
Stefan
Telerik team
sebastien
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or