RadCollapsiblePanel hide border

1 Answer 23 Views
CollapsiblePanel
Carl
Top achievements
Rank 1
Iron
Iron
Iron
Carl asked on 14 Mar 2024, 08:14 PM

In the screen capture below I have a RadGridView in a RadCollapsiblePanel. I need to hide the border for both the CollapsiblePanel and the PanelContainer. 

I tried the code below - which I found on another form post = but to no avail:

radCollapsiblePanel1.ControlsContainer.PanelContainer.BorderStyle = System.Windows.Forms.BorderStyle.None;                   radCollapsiblePanel1.ControlsContainer.PanelElement.Border.Visibility = ElementVisibility.Collapsed;

What am I doing wrong?

Thanks

Carl

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 19 Mar 2024, 12:16 PM

Hello, Carl,

You should also disable the shadows by setting the EnableElementShadow property. Please refer to the following code snippet which result is demonstrated below:

this.radCollapsiblePanel1.RootElement.EnableElementShadow = false;
this.radCollapsiblePanel1.ControlsContainer.PanelElement.Border.Visibility = ElementVisibility.Collapsed;
this.radCollapsiblePanel1.ControlsContainer.PanelElement.EnableElementShadow = false;

I hope this helps. If you have any other questions do not hesitate to contact me.

Regards,
Nadya | Tech Support Engineer
Progress Telerik

A brand new ThemeBuilder course was just added to the Virtual Classroom. The training course was designed to help you get started with ThemeBuilder for styling Telerik and Kendo UI components for your applications. You can check it out at https://learn.telerik.com
Carl
Top achievements
Rank 1
Iron
Iron
Iron
commented on 19 Mar 2024, 04:32 PM

That did it!

Thanks

Carl

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