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

RadCollapsiblePanel Button Element customization

2 Answers 73 Views
CollapsiblePanel
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 21 Mar 2014, 09:53 PM
I'd love to use the RadCollapsiblePanel to provide drop down buttons in my application on certain menus, but my buttons currently are square. and I can't seem to modify the button shape in the panel without using the ControlSpy. Even then it seems odd that there is no "square" button shape to select and I have to make a custom shape for something so common.

My main problem at this point, however, is that any time I set the button element AutoSize to false, the button vanishes at runtime. I attached an image of how it looks at design time. I am able to use a larger image and resize the button, change the background, border, etc. I can't figure out how to make it square and at runtime, the button is gone and nothing in that area responds to a click.

2 Answers, 1 is accepted

Sort by
0
Jeff
Top achievements
Rank 1
answered on 24 Mar 2014, 05:36 PM
I forgot to mention that in the image, the square button is a normal button and the round button is the RadCollapsiblePanel button.
0
George
Telerik team
answered on 26 Mar 2014, 02:38 PM
Hello Jeff,

Thank you for contacting us.

I was able to add a RadButtonElement to the header of RadCollapsiblePanel and to set its Shape. In your case the image may be the one which is causing troubles. Since the RadCollapsiblePaneactually uses a LightVisualElement for its button, instead of RadButtonElement. You can try to use CollapsiblePanelButtonElement, which should result in the correct behavior.

I am also attaching a sample project for your reference.

Let me know if you have any other 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.

 
Tags
CollapsiblePanel
Asked by
Jeff
Top achievements
Rank 1
Answers by
Jeff
Top achievements
Rank 1
George
Telerik team
Share this question
or