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

Regression: uiGridSelection cannot select groupHeaders #6398

Closed
jniles opened this issue Sep 19, 2017 · 2 comments
Closed

Regression: uiGridSelection cannot select groupHeaders #6398

jniles opened this issue Sep 19, 2017 · 2 comments

Comments

@jniles
Copy link

jniles commented Sep 19, 2017

The uiGridSelection used to select group headers in ui-grid version 4.0.4, but no longer selects group headers in v4.0.5+. In previous versions, clicking on a grow that was a group header would select that row. In the newer versions, clicking on the group header will not select the group header row, but select all children.

I believe this change was introduced in 21819c5. The affected code is selection.jsL#730. This patch was a response to #6160.

In my view, the best implementation should allow a user to determine exactly the behavior of the grid:

  1. Should a row.groupHeader be selectable?
  2. Should children be selected when a row.groupHeader be selected?

Currently, option 1. is not supported and 2. is default. Both these should likely toggles exposed via gridOptions.

@knalbandianbrightgrove
Copy link

@jniles

Try this solution, seems working. but I agree to make it configurable

@jniles
Copy link
Author

jniles commented Oct 11, 2017

Hey @knalbandianbrightgrove, I appreciate your response! We did something similar to what you demonstrated. If I get a chance to work on other projects, this is definitely on my shortlist of bugs to fix.

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

No branches or pull requests

2 participants