Prevent modification based on certain criteria (aka SelectedValueChanging)

2 posts, 0 answers
  1. Francois
    Francois avatar
    52 posts
    Member since:
    Dec 2010

    Posted 31 Oct 2011 Link to this post


    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?

  2. Stefan
    Stefan avatar
    2911 posts

    Posted 03 Nov 2011 Link to this post

    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,
    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.

Back to Top