Grid - persist row selection when changing pages.

1 Answer 60 Views
Grid
Tim
Top achievements
Rank 1
Iron
Tim asked on 06 Jul 2022, 11:17 AM

Hello,

I have a grid which dynamically calls data for each page(uses OnRead). I can not figure out how I can keep the rows selected accross multiple pages. I see that the rows remain in the "selectedRows" list, but they are not selected in UI when I am changing pages. I have tried a bunch of approaches but nothing works. Is this even possible?


<TelerikGrid @ref="@WOrderGrid"
                            TItem= "@WOrderAssignDto"
                            SelectionMode="GridSelectionMode.Multiple"
                            @bind-SelectedItems="@selectedRows"
                            Resizable="true"
                            Reorderable="true"
                            FilterMode="@GridFilterMode.FilterRow"
                            Pageable="true"
                            PageSize="15"
                            Sortable="true"
                            SortMode="@SortMode.Multiple"
                            OnRead=@ReadItems>

1 Answer, 1 is accepted

Sort by
0
Accepted
Tim
Top achievements
Rank 1
Iron
answered on 06 Jul 2022, 01:19 PM
Solved it manually.
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Iron
Answers by
Tim
Top achievements
Rank 1
Iron
Share this question
or