Is it possible in the 'RadCheckedDropDownList' control to disable the suggestion dropdown that appears when AutoCompleteMode is set as SuggestAppend,

1 Answer 86 Views
CheckedDropDownList DropDownList
Fernanda
Top achievements
Rank 1
Fernanda asked on 27 Jun 2023, 07:58 PM
In the 'RadCheckedDropDownList' control, when the AutoCompleteMode is set as SuggestAppend, it opens a dropdown with suggestions based on what was typed. Is there a way for me to make this suggestion dropdown not open and have the text appear in the normal dropdown instead? I don't find it very appealing to open two dropdowns when I could just use one. I didn't find any option to remove this suggestion dropdown.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 29 Jun 2023, 05:27 AM

Hello, Fernanda,

Please have in mind that RadCheckedDropDownList internally uses RadAutoCompleteBox for the editable part. If you want to eliminate the autocomplete drop down, the possible solution that I can suggest is to use another mode, e.g. Append. Thus, when the user enter some text, the remainder of the most likely candidate string will be appended to the existing characters, highlighting the appended characters.

An alternative approach is to leave only the autocomplete popup when typing in the editor and cancel opening the default drop down: 

        public RadForm1()
        {
            InitializeComponent();
            DataTable dt = new DataTable();
            dt.Columns.Add("Id", typeof(int));
            dt.Columns.Add("Name", typeof(string));
            for (int i = 0; i < 10; i++)
            {
                dt.Rows.Add(i, "Item" + i);
            }
            this.radCheckedDropDownList1.PopupOpening += radCheckedDropDownList1_PopupOpening;
            this.radCheckedDropDownList1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            this.radCheckedDropDownList1.DataSource = dt;
            this.radCheckedDropDownList1.DisplayMember = "Name";
            this.radCheckedDropDownList1.ValueMember = "Id";
        }

        private void radCheckedDropDownList1_PopupOpening(object sender, CancelEventArgs e)
        {
            e.Cancel = true;
        }

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
CheckedDropDownList DropDownList
Asked by
Fernanda
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or