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

Dont expand on header click

1 Answer 57 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Kirk
Top achievements
Rank 1
Kirk asked on 02 Feb 2012, 04:57 PM
I saw some examples kind of like this but cant quite get it to work properly. Is it possible to not handle clicking on the header but still allow expanding through the button?

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 07 Feb 2012, 02:45 PM
Hello Kirk,

In order to implement your scenario, you'll have to edit the default ControlTemplate of the RadExpander control to move the Header content from the HeaderButton element. I attached a sample project that demonstrates how you can modify the RadExpander ControlTemplate to expand the control only when clicking on the button located on the left side of the header.

Please keep in mind that this custom style will only work when the RadExpander ExpandDirection is Down. If you customize the ExpandDirection or the HeaderAlignments of the expander, you'll need to modify the template accordingly.

All the best,
Tina Stancheva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Expander
Asked by
Kirk
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or