Closed marekm294 closed 8 months ago
Delayed binding can definitely cause such problems since will brake the lifecycle of component loading from settings. You can check loading settings when binging with LoadData.
@enchev It's not about delayed binding this bug. Imagine you want to load data on button click. The problem si you reset column visibility OnDataChange() when there's Settings.
Describe the bug https://blazor.radzen.com/datagrid-save-settings - this example works nice but once you add Task.Delay() (simulation of data load) columns visibility (and maybe more) settings will stop to work.
To Reproduce Add Delay to simulate data loading in example page (link is above)
When you do this change, Columns visibility will be reseted after loading data.
This is happening because OnDataChanged() is called after Settings is loaded from LocalStorage. In OnDataChanged() method the Reset() method is called. Reset() method will reset columns visibility. I believe this is not desired behavior in this case.