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

how to select the selected item when double click?

4 Answers 351 Views
MultiColumn ComboBox
This is a migrated thread and some comments may be shown as answers.
Mohan
Top achievements
Rank 1
Mohan asked on 26 Mar 2013, 12:57 PM
Hi ,
     I am using multicolumn combox and also enabled filtering in combox. if i search item in combobox , its populating correct result and if i double click on any one of the item, selected item is not showing in the combox. please give solution to show the selected item not different item by double click in editor control.

4 Answers, 1 is accepted

Sort by
0
Usman
Top achievements
Rank 2
answered on 20 May 2014, 05:42 AM
Hi, same problem here ....
the double click is only working when double clicking on the combobox button.
else it can be done by selected index or leave event.
0
Dimitar
Telerik team
answered on 21 May 2014, 02:45 PM
Hi Usman,

Thank you for writing.

By default if you click in the dropdown (single click) the row is selected and the dropdown is closed. Also when you click in the text box the drop down is closed without any value change. This is the default behavior and I am not sure what is the expected one in this case. Could you please specify how exactly you want the control to behave? This will allow me to further investigate this case and provide you with a proper solution if such exists. 

I am looking forward to your reply.
 
Regards,
Dimitar
Telerik
 
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.
 
0
samarpan
Top achievements
Rank 1
answered on 02 Dec 2016, 01:17 PM

Hi,

The problem is drop down is not closing by single click,we have to click twice in order to select another option from drop down and close it.

0
Dimitar
Telerik team
answered on 05 Dec 2016, 12:17 PM
Hello,

Thank you for writing.

By default, you need to click once to open the drop down and once to choose a value. You can omit one of the clicks be directly opening the drop down when the cell goes in edit mode:
private void RadGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
{
    if (e.ActiveEditor is RadMultiColumnComboBoxElement)
    {
           
        var editor = e.ActiveEditor as RadMultiColumnComboBoxElement;
        editor.PopupClosing += Editor_PopupClosing;
        editor.DropDownAnimationEnabled = false;
        if (!editor.IsDropDownShown)
        {
             editor.ShowPopup();
        }
  
    }
}

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik by Progress
Telerik UI for WinForms is ready for Visual Studio 2017 RC! Learn more.
Tags
MultiColumn ComboBox
Asked by
Mohan
Top achievements
Rank 1
Answers by
Usman
Top achievements
Rank 2
Dimitar
Telerik team
samarpan
Top achievements
Rank 1
Share this question
or