Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call Reload after DataGrid Loaded to fix initialization #168

Merged
merged 2 commits into from Mar 25, 2024

Conversation

chrigi28
Copy link
Contributor

The Reload method gets called approximately five times, but always before the DataGrid is loaded. As a result, some events were not initialized correctly. In the provided example project, the WonColumnVisible did not trigger an update. It was only after a ColumnChangeEvent (for instance, when a column was added or removed) that the Reload method was executed, and from that point on, the WonColumnVisible behavior started working as expected.

@akgulebubekir
Copy link
Owner

OnColumnsChanged event is already being listened and it calls the method. Can't see a way that the scenario might occur. @symbiogenesis could you please have a look?

Co-authored-by: Ebu Akgul <ebubekirakgul91@gmail.com>
@symbiogenesis
Copy link
Collaborator

OnColumnsChanged event is already being listened and it calls the method. Can't see a way that the scenario might occur. @symbiogenesis could you please have a look?

Looking at this now.

@symbiogenesis
Copy link
Collaborator

This PR looks good. Some of the recent performance refactoring must have caused this regression.

After merging, I will do some minor renaming and refactoring to help make things clearer.

@symbiogenesis symbiogenesis merged commit b9c800f into akgulebubekir:main Mar 25, 2024
2 checks passed
@symbiogenesis
Copy link
Collaborator

@akgulebubekir, you could push out another hotfix now if you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants