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

Expander Mouse Clicks

2 Answers 148 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Darin
Top achievements
Rank 1
Darin asked on 30 Nov 2012, 06:05 PM
I have an Expander that I set IsEnabled="False", but I want to know if user clicks on it so that I can display a message.

Please point me to an example on how to capture that mouse click (MouseDown for example)?

Thanks

2 Answers, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 04 Dec 2012, 09:54 AM
Hello Darin,

This scenario you are trying to achieve is handled correctly by the framework, you can not listen for mouse events on a disabled control. However you can wrap the RadExpander in content control such as: StackPanel, Grid e.t. and listen for their MouseEvents.

I have made a sample solution for your convenience.

I hope this information helps, please don't hesitate to ask if you have further questions.

Regards,
Kiril Vandov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Darin
Top achievements
Rank 1
answered on 05 Dec 2012, 05:14 AM
Awesome, that is simple.  Thanks
Tags
Expander
Asked by
Darin
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Darin
Top achievements
Rank 1
Share this question
or