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

CustomEntry not working properly

2 Answers 13 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Danielle
Top achievements
Rank 1
Danielle asked on 01 Mar 2019, 05:26 PM

I have an autocompletebox set up with the following settings

                            <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" RenderMode="Lightweight" runat="server"
                                MaxResultCount="100" MinFilterLength="2"
                                AllowCustomEntry="true"
                                InputType="Text" Width="100" DropDownWidth="100px"
                                DataTextField="My_Text" DataValueField="My_Value" >
                                <TextSettings SelectionMode="Single" />
                            </telerik:RadAutoCompleteBox>

 

When entering text, if any items match partially on the entry, the top entry from those will be selected.  For instance, if I have an option for '1234' and the user has typed '123', the entry for '1234' will be selected and the user is unable to add a custom entry for '123'.

Is there any way to get around this behavior?  The users really need to be able to add custom entries.

2 Answers, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 05 Mar 2019, 01:48 PM
Hello Danielle,

This behavior is intended and enabled by default. You can easily disable it by setting HighlightFirstMatch property to false: https://docs.telerik.com/devtools/aspnet-ajax/controls/autocompletebox/functionality/items-selection.

Regards,
Peter Milchev
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.
0
Danielle
Top achievements
Rank 1
answered on 06 Mar 2019, 02:22 PM
Thanks!  That's exactly what I needed.
Tags
AutoCompleteBox
Asked by
Danielle
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Danielle
Top achievements
Rank 1
Share this question
or