how to select the selected item when double click?

5 posts, 0 answers
  1. Mohan
    Mohan avatar
    11 posts
    Member since:
    Jul 2012

    Posted 26 Mar 2013 Link to this post

    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.
  2. Usman
    Usman avatar
    3 posts
    Member since:
    Sep 2013

    Posted 20 May 2014 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 21 May 2014 Link to this post

    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.
     
  5. samarpan
    samarpan avatar
    1 posts
    Member since:
    Dec 2016

    Posted 02 Dec in reply to Dimitar Link to this post

    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.

  6. Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 3 days and 4 hours ago Link to this post

    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.
Back to Top
UI for WinForms is Visual Studio 2017 Ready