I have a RadzneDataGrid that is filled with data. The DataGrid has the option DataGridSelectionMode.Single and when I execute some other component that I reach with NavigateTo and return with same NavigateTo, the datagrid knows all the values based on which it could restore the table with all selected data that was before the call of the other component. In the OnAfterRenderAsync section I execute the following code:
‚‚‚
if (pendingSelection && grid0 != null)
{
pendingSelection = false;
await grid0.Reload();
var match = gKGKNCollection?.FirstOrDefault(x => x.BRNAL == brnal);
if (match != null)
{
brnal = 0;
await grid0.SelectRow(match, true);
StateHasChanged();
}
}
‚‚‚
everything works as I expect and all the values in the variables are as they should be but the line in the RadzenDataGrid is not marked as selected.
What did I miss to do?