Search code examples
c#asp.nettelerik

Telerik RadAutoCompleteBox duplicate selection issue


In RadAutoCompleteBox i am able to select same item multiple times, how can i avoid selecting same item multiple times. That way it allows the user to duplicate items selected. for example

I will select Apple. It goes to the box.Next again i will select apple.Then i get 2 apples on the box. Now apple is selected 2 times, this is a problem.

How to avoid this?

I am using the below link

https://demos.telerik.com/aspnet-ajax/autocompletebox/examples/default/defaultcs.aspx


Solution

  • I found the answer of questions. i solved Telerik RadAutoCompleteBox duplicate selection issue.

    the OnClientEntryAdding property of Telerik RadAutoCompleteBox solve duplicate issue.

    i used this in my code OnClientEntryAdding="restrictDuplicateEntry"

    and solved duplicate selection issue in Telerik RadAutoCompleteBox.