Is there any way to implement a 'SelectedIndexChanging' event for a RadComboBox?
The reason is that I need to cancel the index changed event sometimes, but I cannot since the changing event is missing in RadComboBox.
I was able to extend the radcombobox so that the selectedindexchanging event fires that allows the developer to cancel the selectedindexchanged event.
This will be useful for developers using Telerik RadControls for Winforms version prior to 2010 Q2.
The attached project contains an extended custom control that inherits RadComboBox but adds new functionality of selectedindexchanging event.
The complete code for such a custom control is given below.
Your approach is correct. You can also use RadDropDownList that implements this event.
Do not hesitate to contact us if you have other questions.
Best wishes,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items