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

How to bind DropDownOpened event of a Rad Combo box to a command in the viewmodel

1 Answer 277 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Srini
Top achievements
Rank 1
Srini asked on 08 Feb 2011, 07:00 AM
Hi,

How can i route the DropDownOpened event raised by the RadComboBox to a handler in the viewmodel?

Thanks.

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 09 Feb 2011, 01:45 PM
Hello Srini,

 
Thank you for contacting us.

I would suggest you to implement attached behavior for the RadComboBox using attached property. In the PropertyCallBack of the attached property you could handle the DropDownEvent and execute the command (in your ViewModel). Attached you can find the sample. 

I hope this helps.

Greetings,
George
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
ComboBox
Asked by
Srini
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or