RadGrid for ASP.NET AJAX supports client-side binding to web services or page methods
as demonstrated in this online demo of the product. In order to assign data source
for the grid and refresh its state on the client, utilize the set_dataSource(dataSource)
and dataBind() methods from its client-side API. Keep in mind that the data source
passed as an argument to the set_dataSource method should have JSON signature which
can be serialized by a web service or a page method.
All grid commands will raise the OnCommand client grid event which can be intercepted
in order to cancel the default operation and perform a custom action client-side.
The demo also illustrates how to:
- extract information about the current page index/virtual item count or set
them on the client
- customize the appearance of the grid items based on their column cell values
(intercepting the OnRowDataBound client event of the grid)
- obtain the values of the sort expressions/filter expressions applied to the control.
Further information about the OnCommand/OnRowDataBound events of RadGrid and the
client GridTableView object's properties, methods and collections can be gathered
from the Client-side API Reference chapter in the documentation:
Client-side API Reference chapter
Client-side binding topic