Display an array of CDT data in a read-only paging grid.
This scenario demonstrates:
How to display an array of data in a read-only paging grid.
How to configure paging and sorting in a read-only grid.
Test it out
Go to the second page of the grid. Notice that grid data changes to show the next batch of data.
Sort the grid by clicking on one of the column headers. Notice that the grid goes back to the first page and displays the data in the correct order.
This expression shows how to modify the above expression for offline use. The only difference is that all rows are displayed initially since grid paging is not available when offline.
Notable implementation details
Notice that local!pagingInfo is a load() variable and local!datasubset is a with() variable. This allows us to save a new value into local!pagingInfo when the user interacts with the grid and then use that value to recalculate local!datasubset