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

Prevent modification based on certain criteria (aka SelectedValueChanging)

1 Answer 132 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Francois
Top achievements
Rank 1
Francois asked on 31 Oct 2011, 02:45 PM
Hi,

I would like to be able to prevent the user to change the value on certain situations but I cannot find an event that would help me do that.

I've found the MultiColumnComboBoxElement.TextChanging event, but that only works when the modification is made with the keyboard. I would need to be able to handle also the modifications made by the mouse, including the mouse wheel.

Any ideas?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 03 Nov 2011, 01:17 PM
Hello Francois,

Thank you for writing.

I would suggest using the CellValidating event of the EditorControl for your scenario:
radMultiColumnComboBox1.EditorControl.CellValidating += new Telerik.WinControls.UI.CellValidatingEventHandler(EditorControl_CellValidating);

Please give it a try and let me know if ti works for you.
 
Best wishes,
Stefan
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Tags
MultiColumn ComboBox
Asked by
Francois
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or