Silk skin

AutoCompleteBox - Binding to Telerik ClientDataSource

ClientDataSource binding

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

Since Q2 2014 the RadAutoCompleteBox can be bound to RadClientDataSource control. This functionality is provided out of the box through the server-side ClientDataSourceID property.

RadAutoCompleteBox needs the following properties in order to load its items properly:

  • DataText—defines the data source field name which will be shown as text of the item.
  • DataValue—defines the data source field name which will be considered as value of the item.

The RadAutoCompleteBox property MaxResultCount works in exactly the same manner as with any other data source control.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
<%@ Page Title="" Language="VB"  AutoEventWireup="false" CodeFile="DefaultVB.aspx.vb" Inherits="AutoCompleteBox_Examples_Client_Side_Data_Binding_DefaultVB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>

    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />

    <telerik:RadClientDataSource runat="server" ID="RadClientDataSource1">
            <WebServiceDataSourceSettings ServiceType="OData">
                <Select Url="Products" DataType="JSON" ContentType="application/json; charset=utf-8" />
        <Schema DataName="d.results">

    <div class="demo-container size-thin">
        <h2>ClientDataSource binding</h2>
        <telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="RadAutoCompleteBox1" runat="server"  ClientDataSourceID="RadClientDataSource1" DropDownHeight="160px" Width="300"
            DataTextField="ProductName" DataValueField="ProductID">


Find Assistance

Help Us Improve

Was this example helpful?