New to Telerik UI for BlazorStart a free 30-day trial

Persist Grid Selection Across Pages

Environment

ProductGrid 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 the GridCheckBoxColumn.

In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support