-
Notifications
You must be signed in to change notification settings - Fork 424
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
CheckboxSelectColumn, GroupItemMetadataProvider and DataView with grouping bugs #165
Comments
Yes. I am facing same problem. +1 |
I couldn't reproduce the bug in Number 1 And on Number 2 rows still remain selected while the group header checkbox becomes unselected but Number 3 definitely looks like it needs a workaround... |
Yes exactly, captures are very clear about the issue. That's the point, collapsing and expending is broking the whole grid. |
Hi all. Will look at this on the weekend. I keep saying it, but I'm just really busy at the moment. I'm also a little surprised no-one has managed to fix it yet. |
We tried many times and chased for several hours but unfortunately this is really annoying. There were some solutions but we were not sure about the regression and side effects. So we couldnt address a solution. Also it may be a long-term bug from the original mleibman repository or a design issue. |
These should be fixed now (latest release) 2.3.9. Just involved adding
after the EDIT: actually, it only needs to be added once during grid setup. My mistake. Will patch soon. Check the wiki under 'Synchronizing selection & cell CSS styles' here. I am investigating adding the functionality to select and deselect collapsed groups, but not quite there yet. |
We are waiting for patch according to your edited comment. Thanks for work. |
2.3.10 released. Still investigating 'select and deselect collapsed groups', but not quite there yet. |
Just tried it but still same error occurred. |
OK, can you get specific? It's working fine for me in Chrome. What browser are you using? Here's the example: http://6pac.github.io/SlickGrid/examples/example-grouping-checkbox-row-select.html |
Hello. Do we need to change dataview as you mentioned before or wait since "EDIT: actually, it only needs to be added once during grid setup. My mistake. Will patch soon." |
No changes to core code. Just a one line addition to the example page itself. When I mentioned |
Thanks. Adding dataView.onRowCountChanged and dataView.onRowsChanged seems solved the issue. But if there are many rows this really locks the screen. I think we should invoke syncselection in group toggle methods. |
You only invoke |
I'm mid work-project at the moment and hit this issue. I needed to get the behavior fixed, so I have been digging around. Having investigated the cause it seems to principally be down to two issues:
In looking to fix the issue I decided not to fork a copy of the code, but rather patch a fix on top of the current implementation. Below is the code that can be used to patch the issue. It's not perfect, but it seems to work and also adds one or two other benefits. Although there is a fair bit of javascript I've tried to make it simple to use. In fact it can reduce the number of lines of code required to create a grid with grouping. Thus to use the fix you simply call it like so:
... then after you've created the Slick.Grid object and assigned the That's it! The You can deduce from the code below that it should still be possible to pass in the various setup options for the Data View and GroupItemMetadataProvider. The Data View options are passed in the first argument to the 'createDataViewWithGroupMetaItemProvider' method, whilst the GroupItemMetadataProvider options are passed as the second argument. I've added a couple of extra options, one for the DataView and one for the GroupMetaItemProvider. On the DataView you can set Here's the code for the fix
Finally apologies for the log comment entry. Perhaps should be a blog post!! Hope this helps. |
Thanks for feeding that back. This has turned out to be one of those can-of-worms problems, and I'm way too busy right now to take it on. I'll see if I can test this out and offer it as part of the standard repo. |
Please let us know when shall this issue will be resolved? |
Sorry @rahuledb, this is a complex issue to resolve. I'm not going to get to it soon. |
Any news here? Still very annoying. |
not yet. am a little less busy, so may have time to at least evaluate the above fix. the issue is that the problem is a result of interaction between many components, so fixing it may have inintended side effects. To fix it properly I'm going to have to map out all of the use cases, create tests for all of them, and re-architect all the components for a more sane model - working out the interactions is way too complicated. That said, the above fix may just be a patch that will do for now. |
Some bugs that I've found:
They are reproduces on example page http://6pac.github.io/SlickGrid/examples/example-grouping-checkbox-row-select.html
The text was updated successfully, but these errors were encountered: