Persist Grid Selection Across Pages
Environment
Product | Grid for Blazor |
Description
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.
Solution
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
Since our 2.10.0 release the behavior showcased above is delivered out of the box with the
SelectAllMode
parameter of theGridCheckBoxColumn
.