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

开始with the Telerik WebForms ClientDataSource

TheRadClientDataSourcecontrol is a server-sideASP.NET AJAX wrapper的theKendo.UI DataSourcecomponent, which could be used for performing various data source operations on the client. It fully supports binding to different kinds of web services and also provides both local and server-side support for排序,paging,filtering,grouping, andaggregates.

With the steps below, we will show how to entirely bind aRadGridcontrol to aRadClientDataSourcedeclaratively by involving theDesign Time的the control.

  1. From theToolboxinVisual Studio, drag aRadClientDataSourceand aRadGridinstances to the design surface of your page.

  2. Set aWebServiceusing theUrlproperty. In this example we are using "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Products"

    ASP.NET

                   
  3. Click on the smart tag ofRadGridcontroland specify theClientdataSourceID

    client-data-source-id

  4. Specify the RadGrid columns, theirDataFieldsand the other required settings likepaging,filteringect.

    ASP.NET

       Baidu
map