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

setColumns should update the global treeColumns and columns variable #665

Conversation

xinchao-zhang
Copy link
Contributor

Calling setColumns does not update the global treeColumns and columns variable when there is no tree columns (e.g. flat grid). This causes a bug that the column collection cannot be updated once grid is intialized

columns = columnDefinitions;
}
treeColumns = new Slick.TreeColumns(columnDefinitions);
columns = treeColumns.extractColumns();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can hardly accept this PR, we actually were thinking to get rid of it, but you are trying to making it the only option. There's a long post about this in this issue #592, I still don't understand what this tree does exactly

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whew! Just read through all of that for #592. So it looks like we never actually did get rid of TreeColumns? I do think there are much less complex ways of implementing column grouping than a tree structure, and given that the column array is a fundamental part of SlickGrid, it's best not messed with.

@ghiscoding
Copy link
Collaborator

closing since code change request were not applied and we are actually trying to remove TreeColumns entirely, see PR #775 which, if merged, will be release in our upcoming Roadmap to v4.0

@ghiscoding ghiscoding closed this May 15, 2023
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.

3 participants