-
Notifications
You must be signed in to change notification settings - Fork 10
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
First datagrid ".header-cell" can select all rows only #27
base: master
Are you sure you want to change the base?
Conversation
It's actually a feature - see tooltips at http://twigrid.1991.cz/group-actions However, I'm planning on changing this behavior. There will be two checkboxes above the table like "select visible" and "select all" and the checking via clicking on header will be removed. |
OK, I was surprised, when I clicked on header accidentally and all rows were selected - this was unexpected behavior for me. In my eyes it was a bug, which led me to do this pull request :) However, for me it is more a bug than a feature. If i would like to select all, I click first column. As a feature I don't see any benefit (except a shortcut for lazy mouse shifters) and it does not make sense for me. It would be better, if should be sort link displayed as block through whole table cell - for better navigation in cell phones and tablets. |
I see. I kind of like the block sorting buttons, the thing is how to deal with multisort "+" buttons then? |
There are many options:
BTW: there is a strange behavior of multisorting => #28 |
6b17985
to
97f4193
Compare
c4333ec
to
003cc91
Compare
Currently, all of ".header-cell"-s select all rows, which is not so practical and not intuitive/user-friendly if user click accidentally outside sort link or sort control button (but I hope, that it is only a bug of bad selector (".headel-cell" instead of ".header-cell:first-of-type" or wrongly placed of first() function ).
Second one was selected as a fix, because usage of .first() is needed in the firstly mentioned possible fix also.