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

fix(picker): column exclude from ColumnPicker, GridMenu caussing issue #402

Merged
merged 1 commit into from Jul 22, 2019

Conversation

ghiscoding
Copy link
Collaborator

@ghiscoding ghiscoding commented Jul 22, 2019

  • found this issue by looking into adding Cypress E2E tests, ref PR feat(e2e): add Cypress to the project for E2E testing #399
  • because there is a grid setColumns, we cannot just remove the excluded columns, if we do it causes some issues when clicking checkbox to show/hide columns later. It removes the excluded column completely from the grid as soon as we click on the checkbox of any item, that is because we call the setColumns without the excluded item.
  • what is better is to simply keep excluded item in the list but simply hide the checkbox from the picker list.

From the animated gif below, you can see the 2 first columns ("#" and "A") hides when clicking only item "A"
A6txVdqyiS

- found by looking into Cypress E2E tests, ref PR #399
- because there is a grid setColumns, we cannot just remove the excluded columns, if we do it causes some issues when showing/hiding columns later.
- what is better is to simply keep excluded item in the list but simply hide the checkbox from the picker list.
@pujapradhan10
Copy link

Is this working for anyone, not working for me. Please reply if have any other solution to always enable checkbox column after show/hide column also. Thanks in advanced.

@ghiscoding
Copy link
Collaborator Author

This PR was to exclude columns from the picker, what you're describing seems different than that. I don't exactly understand your question, but if you mean to have a column always shown that the user cannot unclick, that is not currently doable.

@ghiscoding ghiscoding deleted the bugfix/picker-hides-excluded-columns branch December 14, 2019 20:37
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

2 participants