Hello,
I am developing a Blazor Server App and came across the following issue.
I created a page that loads data from a database into a local list and then binds the grid. The grid is configured with Sort Settings:
<GridSortSettings>
<GridSortColumns>
<GridSortColumn Field="@nameof(Record.RecordNumber)" />
</GridSortColumns>
</GridSortSettings>
So far so good. Now I want to select a specific row programmatically. However, using GetRowIndexByPrimaryKeyAsync gives me the index in the original (unsorted) data, not the index of the row after the data is sorted.
Is there a solution to this problem. I tried to select the row in various lifeycycle stages of the pages but always having the same problem.
Any help would be appreciated.
Thank you
Sascha