SelectedValueChanged not Firing

2 posts, 0 answers
  1. Saif
    Saif  avatar
    30 posts
    Member since:
    Apr 2014

    Posted 26 May 2014 Link to this post

    After binding MultiColumnComboBox, SelectedValueChanged excute.
    But if i try to select (using keyboard or mouse) the First record which is on the Top (index 0) SelectedValueChanged doesnt work.
    Then i tried to select the 2nd record and SelectedValueChanged runs. and try to select the 1st record again and SelectedValueChanged runs.

    Please check this scenario.

  2. Dess
    Dess avatar
    1559 posts

    Posted 29 May 2014 Link to this post

    Hello Saif,

    Thank you for writing.

    By default, the first row in the MultiColumnComboBoxElement.EditorControl is selected. When opening the popup and clicking the first row, you actually do not change the selected row as it is already selected. That is why the RadMultiColumnComboBox.SelectedValueChanged event is not fired in this case. In order to detect this situation, it is appropriate to use the MultiColumnComboBoxElement.EditorControl.CellClick event:
    this.radMultiColumnComboBox1.MultiColumnComboBoxElement.EditorControl.CellClick += EditorControl_CellClick;

    private void EditorControl_CellClick(object sender, GridViewCellEventArgs e)
        GridViewRowInfo selectedRow = e.Row;

    The same situation can occur if you close the popup, pressing the Enter\Tab key without changing the selection. It is possible to handle this case as well:
    this.radMultiColumnComboBox1.MultiColumnComboBoxElement.TextBoxElement.TextBoxItem.TextBoxControl.PreviewKeyDown +=

    private void TextBoxControl_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e)
        if (e.KeyCode == Keys.Tab || e.KeyCode == Keys.Enter)
            GridViewRowInfo selectedRow = this.radMultiColumnComboBox1.MultiColumnComboBoxElement.EditorControl.CurrentRow;

    I hope this information helps. Should you have further questions, I would be glad to help.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft banner
Back to Top