Autocomplete in AutoCompleteBox vs. TextBoxControl

1 Answer 129 Views
AutoCompleteBox TextBoxControl
Holger
Top achievements
Rank 1
Holger asked on 08 Jul 2021, 04:01 PM
I'm just comparing the Autocomplete Features of AutoCompleteBox and TextBoxControl.

Is the Tokenization of multiple Items the Key Feature of AutoCompleteBox ? Or could it behave/look like a normal TextBox also.

I found from your Demos, the AutocompleteBox will, if you type "Jon", find an item like "Sebastian Jonnson".
TextBoxControl doesn't . It only finds strings, who starts with the typed Sequence, not contain a sequence.

Is this general behaviour, or are there settings to control how a match is made ?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Jul 2021, 12:44 PM
 Hello, Holger,


The following KB article demonstrates a sample approach how to achieve "Contains" autocomplete functionality in RadTextBoxControl:
https://docs.telerik.com/devtools/winforms/knowledge-base/textboxcontrol-autocomplete-contains

As to the RadAutoCompleteBox, it can autocomplete the items that "Contain" the user's input:

            this.radAutoCompleteBox1.AutoCompleteMode = AutoCompleteMode.Suggest;
            this.radAutoCompleteBox1.AutoCompleteDataSource = list;
            this.radAutoCompleteBox1.AutoCompleteDisplayMember = "Name";

Feel free to use this control which suits your requirements best.

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

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
AutoCompleteBox TextBoxControl
Asked by
Holger
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or