Since Q2 2014 you can easily bind RadGrid on the client via the RadClientDataSource control. The functionality is provided out of the box through the server-side ClientDataSourceID property which also has its client-side counterpart - the set_clientDataSourceID() method.
Client-side data binding means fewer postbacks, easier integration with various data services and a more flexible client-side development.
Sorting and filtering can be performed automatically when
RadClientDataSource is used. If you need to use sorting or filtering, simply set the
AllowSorting and
AllowFilteringByColumn properties of
RadGrid to
true.
RadGrid also supports Batch Editing when bound on the client and to enable it, you only need to set EditMode to Batch.
In this demo you will see how to bind the grid to a WCF service. The key points of interest are:
- The OnDataParse event handler passes the data returned from the service
- The OnCustomParameter handler sends the data in the correct format to the service.
- The Schema model of the RadClientDataSource is defined which includes all fields and the ID of the table.