Multiple call to load data from DataGrid Load Setting

  1. Run Blazor DataGrid Component - Save / Load Settings with LoadData | Free UI Components by Radzen
  2. page 2 or change table
  3. Refresh page and see Console log

Loading data causes several unnecessary calls to the LoadData method.

The first call LoadData occurs on the first render, it does not take any settings.

The second call LoadData comes after the settings are loaded (THIS IS THE RIGHT CALL). Logically, only this call should occur if the settings are not null.

calls 3 and 4 are already redundant.

2023-08-10_14-53-09

PS:

button Reload (Blazor DataGrid Component - Save / Load Settings with LoadData | Free UI Components by Radzen) redirects to Blazor DataGrid Component - Save / Load Settings | Free UI Components by Radzen

This is the best we can do in such case. Feel free to purpose change with better logic/less calls.