editable dropdown control

2 posts, 0 answers
  1. adnan
    adnan avatar
    5 posts
    Member since:
    Nov 2006

    Posted 18 Jan Link to this post

    how to achieve editable dropdownlist . i m using TypeConverter. code sample please 
  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3412 posts

    Posted 22 Jan Link to this post

    Hello, Muhammad,      
      
    If I understand your requirement correctly, you need to allow editing the text in the PropertyGridDropDownListEditor. For this purpose, it is necessary to handle the EditorInitialized event and set the DropDownStyle property to DropDown

    private void radPropertyGrid1_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e)
    {
        PropertyGridDropDownListEditor editor = e.Editor as PropertyGridDropDownListEditor;
        if (editor != null)
        {
            BaseDropDownListEditorElement element = editor.EditorElement as BaseDropDownListEditorElement;
            element.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDown;
        }
    }
      
    If it is not the exact requirement, please specify in details what is the exact requirement that you are trying to achieve. Thus, we would be able to get better understanding of the precise case and think about a suitable solution.

    I hope this information helps. 

    Regards,
    Dess | Tech Support Engineer, Sr.
    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