Flexible data loading mode
WebGrid 7’s ClientBinding™ includes two type of data loading mode for client-based
data service, regardless of the paging mode of WebGrid in User Interface level.
-
AllData
If your data service is designed to return all data, then you should choose AllData
as the value of DataLoadMode property.
-
PagedData
PagedData option is very useful under certain scenarios when large amount of data
is used. It enables you to retrieve only partial data for the current view.
Intersoft’s ClientBinding™ introduces a unique approach which enables you to easily
retrieve paged data in your data service. ClientBinding encapsulates essential select
arguments into an object called DataSourceSelectArguments. This object is always
passed to the parameter of your Select method, enabling developers to easily perform
data selection based on the information.
When data operation – such as sorting and filtering – is performed in PagedData
mode, WebGrid will send a request to the specified data service by including complete
request data in the selectArguments parameter. Developers are responsible to handle
the sorting, filtering and paging based on the select arguments. In addition, WebGrid
will also send a SelectCount request when it needs to invalidate the paging status.