Dont expand on header click

2 posts, 0 answers
  1. Kirk
    Kirk avatar
    28 posts
    Member since:
    Jun 2012

    Posted 02 Feb 2012 Link to this post

    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?
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 07 Feb 2012 Link to this post

    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 >>
Back to Top