PropertyGridDropDownListEditor and AutocompleteMode

2 posts, 0 answers
  1. VaL
    VaL avatar
    30 posts
    Member since:
    Oct 2017

    Posted 17 Oct 2019 Link to this post


    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;



  2. Nadya
    Nadya avatar
    459 posts

    Posted 18 Oct 2019 Link to this post

    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.

    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.
Back to Top