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

Automatically sets the value

2 Answers 86 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Yaroslav
Top achievements
Rank 1
Yaroslav asked on 23 Jul 2020, 03:47 PM

1) If you open a popup and then close ( click on button ArrowButtonElement) - Automatically sets the first value

2) If faster open and close - autoset first element

 

See video:

 

2 Answers, 1 is accepted

Sort by
0
Yaroslav
Top achievements
Rank 1
answered on 25 Jul 2020, 06:17 AM

Fixed two bugs

1) Autoselect first element

2) Fast ArrorBtn click 

void MultiColumnComboBoxElement_ArrowButton_Click(object sender, EventArgs e)
        {
            if (IsPopupVisible)
            {
                isArrorClick = true;
            }
        }

        void MultiColumnComboBoxElement_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (isArrorClick)
            {
                var oldRow = (e as CurrentRowChangedEventArgs)?.OldRow;
                if (oldRow == null)
                {
                    SelectedIndex = -1;
                }
                else
                {
                    SelectedIndex = oldRow.Index;
                }
            }
            isArrorClick = false;
        }

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Jul 2020, 10:08 AM

Hello, Yaroslav, 

I am glad that you have found a suitable solution for your scenario.

However, I would like to provide some more information in order the community to benefit from it. When you open the popup by pressing the arrow button and then close it by clicking the arrow again, it is not expected to change the selection in RadMultiColumnComboBox. The behavior on my end is the same. You need to explicitly select a row from the popup grid if you want to change the selection. Alternatively, you can set the RadMultiColumnComboBox.SelectedIndex property.

If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Tags
MultiColumn ComboBox
Asked by
Yaroslav
Top achievements
Rank 1
Answers by
Yaroslav
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or