See SAIL Recipes for information about how to work through recipes and adapt them to your application.
Display checkboxes on a read-only paging grid to allow users to select multiple rows of data.
Test it out
Select a checkbox or two and observe the values of the text fields.
The GridSelection text field displays the value of the entire GridSelection object returned by the grid's saveInto parameter.
The Selected Ids text field displays just the value of the GridSelection's selected attribute.
The Your Variable Selected Ids text field displays the value of the local variable that only has the selected ids, which is the value that you would ultimately use.
When testing offline, the values of the text fields do not change, but the appropriate grid rows are selected.
Notable implementation details
The value of the grid is GridSelection rather than PagingInfo, and the value that the grid returns when the user interacts with it is also a GridSelection. The PagingInfo information is embedded in GridSelection. GridSelection must be used when a grid is configured for selection.