The dynamic data load feature in wijgrid lets you:
This mode is enabled by setting the dynamic option of wijdatasource:
$("#demo").wijgrid({
$("#demo").wijgrid({
...
data: new wijdatasource({
...
dynamic: true
...
})
...
});
Data Format when using the Dynamic Data Load Feature
-) Client -> server.
wijgrid passes the following structure to the server in an $.ajax() parameter:
{
filtering: array of { dataKey, filterOperator, filterValue },
paging: { pageIndex, pageSize },
sorting: array of { dataKey, sortDirection }
}
-) Server -> Client.
wijgrid expects (as the wijdatasource.data option) the following structure:
{
rows: array,
totalRows: int
}