title | description | type | page_title | slug | position | tags | res_type |
---|---|---|---|---|---|---|---|
Persist Grid Selection Across Pages |
How to Persist Grid Selection Across Pages. |
how-to |
Persist Grid Selection Across Pages |
common-kb-persist-selection-across-pages |
kb |
Product | Grid for Blazor |
How do I select data across different pages without losing the current selection? If I click a row, all other rows are deselected. If I click the header checkbox, only the current page is selected.
If your users don't use the Ctrl
and/or Shift
buttons to extend the selection, you may want to implement some logic that amends the current selection. This also extends to the Select All checkbox in the header.
An example is available in the following project: https://github.com/telerik/blazor-ui/tree/master/grid/persist-selection
tip Since our 2.10.0 release the behavior showcased above is delivered out of the box with the
SelectAllMode
parameter of theGridCheckBoxColumn
.