You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In docs here it is mentioned that Blazor pages using checkboxes may require to use the ShouldRender method to suppress UI refreshing.
I'm trying to figure out in the code how I can avoid this, but can not figure out why CheckboxComponent keeps reloading on every `StateHasChanged()'. Is there a way to avoid this or why is this issue there? With this work-around it becomes almost impossible to do anything else on the page while still keeping the checkbox states.
The text was updated successfully, but these errors were encountered:
It's not mandatory to use the ShouldRender method on a Blazor page contaning a grid with checboxes.
If the page is rendered for whatever reason, all CheckboxComponents will be reloaded. In older versions checked rows were managed by rowid and a page rerender forced to reinitialize checkboxes's information. But in version 1.6.9 they are managed by row keys and a page rerender will not reinitialize checkboxes's information.
So you can avoid using the ShouldRender method now.
In docs here it is mentioned that
Blazor pages using checkboxes may require to use the ShouldRender method to suppress UI refreshing.
I'm trying to figure out in the code how I can avoid this, but can not figure out why CheckboxComponent keeps reloading on every `StateHasChanged()'. Is there a way to avoid this or why is this issue there? With this work-around it becomes almost impossible to do anything else on the page while still keeping the checkbox states.
The text was updated successfully, but these errors were encountered: