Hello @stsrki
hope you've been well... :)
Describe the bug
I'm not sure if this is something to do with Blazor triggering a re-render or Datagrid or if it's just me missing something.
But I noticed that on the first load, datagrid actually ends up loading 2 times, meaning that it calls ReadData twice.
To Reproduce
Steps to reproduce the behavior:
Tested with a new project, with Blazor Server set to render-mode="Server"
Just init datagrid with ReadData set. It will call it two times. Here's the demo source in screenshots... :P
Doesn't seem to make sense taking into account the source code, do you know what it could be?:
protected override Task OnAfterRenderAsync( bool firstRender )
{
if ( firstRender )
{
if ( ManualReadMode )
return HandleReadData();
// after all the columns have being "hooked" we need to resfresh the grid
InvokeAsync( () => StateHasChanged() );
}
return base.OnAfterRenderAsync( firstRender );
}
Hello @stsrki hope you've been well... :) Describe the bug I'm not sure if this is something to do with Blazor triggering a re-render or Datagrid or if it's just me missing something. But I noticed that on the first load, datagrid actually ends up loading 2 times, meaning that it calls ReadData twice.
To Reproduce Steps to reproduce the behavior: Tested with a new project, with Blazor Server set to render-mode="Server" Just init datagrid with ReadData set. It will call it two times. Here's the demo source in screenshots... :P
Doesn't seem to make sense taking into account the source code, do you know what it could be?: