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

PropertyGridDropDownListEditor auto-open List?

1 Answer 47 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 30 Sep 2019, 06:37 AM

Hello,

some of our users complains about the fact that they need to click twice to edit a value in a PropertyGridDropDownListEditor.

The first click generate and start the editor, the second to open the list.

Is there a way to automatically open the list after the editor has been initialized?

Thanks!

1 Answer, 1 is accepted

Sort by
1
Accepted
Dimitar
Telerik team
answered on 01 Oct 2019, 11:10 AM

Hi Valerio,

You can use the EditorInitialized event to show the popup. Here is the code:

private void RadPropertyGrid1_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e)
{
    if (e.Editor is PropertyGridDropDownListEditor)
    {
        var editor = e.Editor as PropertyGridDropDownListEditor;
        var element = editor.EditorElement as BaseDropDownListEditorElement;
        if (!element.IsPopupOpen)
        {
            element.ShowPopup();
        }
    }
}

I hope this helps. Should you have any other questions, do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
PropertyGrid
Asked by
Andrea
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or