-
Notifications
You must be signed in to change notification settings - Fork 877
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
selection lost after Pagination and searching in multiselect mode. #935
Comments
I can confirm this too. |
I also can confirm this behavior and I'd like also to add another situation where this behaviour appears. I'll summarize. As far as I can see, there are three situations where selection is lost:
I'd like also to make a suggestion, since I think it would solve all these situations and it would be really simple solution, but I haven't been able to find it in the documentation. It would be enough adding to the list of Component Outputs/Events:
And later emitting them when any of the actions is performed. This is a 6 line change which would solve these 3 cases and both of the related open issues #568 and #235. I'm not able to work on this right now, but if you're ok and also the team, I'll implement it tomorrow and send a PR to have this solve and working for other people. |
Actually, I've just found that here Hope some of the dev team is able to explain this better |
Hi Guys! I'm glad to tell you that I've found a solution. It's a bit more complicated than the one I commented some days ago but it works perfect for me and it makes sense, actually. I've used a ViewChild object in my component, being an instance of Ng2SmartTableComponent, like this:
After this, I've an Observable for sorting event (although it could be also page change/filtering) and I can redraw the selection using the table's grid and its methods
Hope this helps y'all. |
May be the issue is solved as commented here. Using custom render component for checkbox and it is working. |
Hello there. I guess I found a solution: HTML:
Component (TS):
Hope you can achieve this! Greetings from Lima, Perú 👍 |
You forgot to handle unchecking the checkbox.
|
When I use selectMode "multi", after selection one or more rows when I change the page or filter any data, the previous selections are lost and all rows are unselected now.
The text was updated successfully, but these errors were encountered: