Skip to content

Commit cf9607f

Browse files
docs(grid): clarify onread paging and grouppaging behavior (#243)
* docs(grid): clarify onread paging and grouppaging behavior * chore(grid): clarifications * chore(grid): clarifications
1 parent ea10122 commit cf9607f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/grid/grouping/load-on-demand.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ When loading data on demand through the [OnRead event]({%slug components/grid/ma
4040

4141
* If the currently expanded group row has subgroups, a request is sent with the `GroupPaging` parameter set to `true`, prompting that the response must include the total of items in the sub group and return a collection of groups once again, instead of a collection of models.
4242

43-
* If the currently expanded group row does not have subgroups, the `Filter` parameter of the `DataSourceRequest` will contain the group value (and the values of any subgroups) for which the items are requested.
43+
* If the grid starts with grouping set, it will make one request for the list of all the groups, and will keep them in memory for paging, so a paging operation will not call `OnRead` again.
44+
45+
* If the currently expanded group row does not have subgroups, the `Filter` parameter of the `DataSourceRequest` will contain the group value (and the values of any subgroups) for which the items are requested. The `PageSize` of that request is set to `0` so the grid gets all items for that group. The `OnRead` event will fire every time you expand a group to get the items for that group.
46+
4447

4548

4649

0 commit comments

Comments
 (0)