Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > MultiColumn ComboBox > Prevent modification based on certain criteria (aka SelectedValueChanging)

Not answered Prevent modification based on certain criteria (aka SelectedValueChanging)

Feed from this thread
  • Francois avatar

    Posted on Oct 31, 2011 (permalink)

    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!

    Reply

  • Stefan Stefan admin's avatar

    Posted on Nov 3, 2011 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > MultiColumn ComboBox > Prevent modification based on certain criteria (aka SelectedValueChanging)
Related resources for "Prevent modification based on certain criteria (aka SelectedValueChanging)"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]