Hi,
I have a little problem with the SfGrid:
My component has a UUID parameter to identify and then selecting this item in the grid.
This code is selecting the correct row in the grid!
public static async Task SelectRowByHiCoId<HICO, LOCO>(this SfGrid<HICO> grid, IHiCo<LOCO> hico)
{
var searchIndexOfDataSource = grid.DataSource.IndexOf((HICO)hico);
int page = searchIndexOfDataSource / grid.PageSettings.PageSize;
await grid.GoToPage(page + 1);
var searchIndex = await grid.GetRowIndexByPrimaryKey(hico.ID);
await grid.SelectRow(searchIndex);
}
But the problem is: After the correct row is selected, it's impossible to go to another page (in my example I have at least 8 pages with 20 pageitems)! For a few seconds I can see the loading bar, but the same page is still visible.
Do you have some hints how to fix that?
Best regards,
Bernd