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

RadAutoCompleteBox: don't find exact matchings

1 Answer 98 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Ciupaz
Top achievements
Rank 2
Veteran
Ciupaz asked on 10 Jul 2020, 12:10 PM

Hello,
I have this HTML code (for RadAutoCompleteBox) in my aspx page (WebForms): 

<telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="acbClient"
                  EmptyMessage="Client" OnClientDropDownItemDataBound="RemoveDuplicated" MaxDropDownHeight="100"
                  DataTextField="RagSoc" DataValueField="CodCli" InputType="Token" DropDownHeight="150px"
                  CssClass="RadAutoCompleteBoxPopup_Default" CollapseAnimation-Type="OutElastic"
                  Width="385">
</telerik:RadAutoCompleteBox>

 

and this in code-behind (VB.NET):

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
 
    If GetClient(dtClient) = True Then
      acbClient.DataSource = dtClient
      acbClient.DataBind()
    End If
 
End Sub

 

but when I click some letters (for example, "ac" like in the screenshoot), 
seems that don't find the exact matching. 

Why this happens?

Thanks a lot in advance. 

Luis

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter Milchev
Telerik team
answered on 14 Jul 2020, 02:00 PM

Hello Luis,

The AutoCompleteBox needs to be bound on each callback. Also, once you set the data source, you can skip the .DataBind() method as explained here:

If the issue persists, share more details on the datasource you set to the AutoCompleteBox and check if removing the GetClient(dtClient) condition would have any effect.

Regards,
Peter Milchev
Progress Telerik

Tags
AutoCompleteBox
Asked by
Ciupaz
Top achievements
Rank 2
Veteran
Answers by
Peter Milchev
Telerik team
Share this question
or