-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
gridstate sortcolumns field instead id property of column #1467
Comments
looking at the graphql implementation, where its done correctly
|
oh ok yeah that must be a typo error, I'd be ok to change it since yes it's supposed to be the column and that gives me the following, the other good thing is that it's also assigned to a commit, so if the code changes in the future, the link will always point to the code that the permalink was created with :) slickgrid-universal/packages/graphql/src/services/graphql.service.ts Lines 587 to 590 in 38b465c
|
ok I'll create a PR for that. good opportunity to read up on the OData implementation |
We currently only store the columns (not sorters and not filters) from the grid state in our backend, so we won't be affected by the fix :) |
Describe the bug
hey there,
when using the OData Service in combo with gridstate events to persist the user selection to e.g localstorage I do get errors when restoring cols on next refresh.
the root cause was brought down to the columnId containing the field property instead of the id as seen here
slickgrid-universal/packages/odata/src/services/grid-odata.service.ts
Line 548 in 38b465c
I didnt dig deeper but guess there were reasons for doing so in order to make sorting work. do you know why or should I dig deeper?
Reproduction
Which Framework are you using?
Angular
Environment Info
Validations
The text was updated successfully, but these errors were encountered: