Using version 3 of the component library I used the GotoPage() method of a datagrid in the OnInitializedAsync after setting the datasource, eg.
protected override async Task OnInitializedAsync()
{
Data= await Data.ListAsync();
// int page = ... coming from parameters or querystring and checked if > 1 and <= (recordCount / Grid.PageSize) + 1
await Grid.GotoPage(page);
}
Now it doesn't work anymore, but it works in OnAfterRenderAsync(bool firstRender)
Is it correct to call here?
And btw, when should I set to true the second parameter forceReload?