New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


The OnClientEntryRemoved client-side event occurs immediately after an item from the drop-down containerhas been removed from the Entry collection of RadAutoCompleteBox.

The event handler receives two parameters:

  1. The instance of RadAutoCompleteBox firing the event.

  2. An eventArgs parameter containing the following method:

  • get_entry() - returns the item removed from the Entry collection.

The OnClientEntryRemoved client-side event is fired only when the input type of RadAutoCompleteBox is set to " Token ".

This event is used in scenarios when operations need to be preformed to RadAutoCompleteBox right after an item is removed from the Entry collection.

<script type="text/javascript">
    function entryRemoved(sender, eventArgs) {
        alert("An entry with Text='" + eventArgs.get_entry().get_text() + "' has just been removed.");
<telerik:RadAutoCompleteBox RenderMode="Lightweight" runat="server" ID="RadAutoCompleteBox1" OnClientEntryRemoved="entryRemoved"
    DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="ID" InputType="Token">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TelerikVSXConnectionString %>"
    SelectCommand="SELECT [ID], [CountryID], [Name] FROM [Cities]"></asp:SqlDataSource>

See Also

In this article