Radzen Blazor is a set of 90+ free native Blazor UI components packed with DataGrid, Scheduler, Charts and robust theming including Material design and FluentUI.
See the example code below. I have modified the Radzen example code so that the reload button just clears and reloads the data object. Upon doing this the Saved DataGrid settings are lost. For example, if I Sort by a column and then hit reload, the sort is not reapplied after reloading.
If you add the property AllowColumnResize="true" or if you add AllowColumnReorder="true" to the RadzenDataGrid properties then the gridsettings load after reloading. There may be other settings that fix it but I just noticed including one of these 2 seems to make it work.
To Reproduce Steps to reproduce the behavior:
Sort by a column (any column)
Click on Reload Button
Notice the Column you sorted on is not sorted anymore, the settings was lost
Now change the code and add AllowColumnResize="true" to the RadzenDataGrid properties
Re run same procedure and notice that the column stays sorted this time.
See the example code below. I have modified the Radzen example code so that the reload button just clears and reloads the data object. Upon doing this the Saved DataGrid settings are lost. For example, if I Sort by a column and then hit reload, the sort is not reapplied after reloading.
If you add the property AllowColumnResize="true" or if you add AllowColumnReorder="true" to the RadzenDataGrid properties then the gridsettings load after reloading. There may be other settings that fix it but I just noticed including one of these 2 seems to make it work.
To Reproduce Steps to reproduce the behavior: