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

PropertyGridDropDownListEditor and AutocompleteMode

1 Answer 119 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Andrea
Top achievements
Rank 1
Andrea asked on 17 Oct 2019, 01:34 PM

Hello,

am I missing something or there's no way to set the autocomplete mode to a PropertyGridDropDownListeditor?

 

var editor = new PropertyGridDropDownListEditor();
editor.DropDownStyle = RadDropDownStyle.DropDown;
// nope:
// editor.AutoCompleteMode = AutoCompleteMode.SuggestAppend;

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 18 Oct 2019, 12:41 PM

Hello Val,

You can set the AutoCompleteMode property to the element of the PropertyGridDropDownListEditor. You can do this by subscribing to the EditorInitialized event:

private void RadPropertyGrid1_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e)
{
    if (e.Editor is PropertyGridDropDownListEditor)
    {
        PropertyGridDropDownListEditor editor = e.Editor as PropertyGridDropDownListEditor;
        BaseDropDownListEditorElement element = editor.EditorElement as BaseDropDownListEditorElement;
        element.DropDownStyle = RadDropDownStyle.DropDown;
        element.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
    }
}

I hope this helps. Should you have any other questions, I will be glad to help.

Regards,
Nadya
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
Nadya | Tech Support Engineer
Telerik team
Share this question
or