-
Notifications
You must be signed in to change notification settings - Fork 179
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
Shiny rows_selected does not react to selectAll Button #366
Comments
DT has its own implementation of row selections, and does not use the Select extension at all. This may be changed in the future, but I guess it will be a substantial amount of work. |
I would like to try this as well, but it seems like I have to change lots of codes... It may drive you crazy... |
Right. The work does not sound like trivial. I think the easiest way to go is to bind the Select extension to Shiny, which means there will be two implementations of row selections in DT (the current implementation from scratch in DT, and an implementation based on Select). I don't plan to do it for the next CRAN release, but please feel free to take a stab at it if you are interested (I guess it might be fun, except... the server mode 😱 ). |
I suspect Select Extention is only able to select the rows on current page... If that is the case, it may be easier... |
Yes, to some degree, it is limited compared to my implementation. I waited for a long time and finally implemented it by myself, and shortly after that, the Select extension was born... and I was quite embarrassed. Now I'm in this awkward position of re-implementing the missing features from Select. |
Well that answers my frustration of implementing the selection logic by yourself... Anyway, I’m going to give a try on this but it probably will take some time. |
Now it works for the client-processing mode, see #744 for details and the example app code. |
@shrektan any chance of making this work for server side mode? Or is there a relevant ticket to watch? Thanks :) |
Hi,
It seems the shiny value input$...._rows_selected does not react to the selectAll button from the Select extension. Clicking the "Select All" button correctly selects the rows in the table, but the selection is not sent to Shiny. However, once unselecting a row, the rest of the selection is correctly sent to Shiny.
A minimal example:
Thanks,
Andras
The text was updated successfully, but these errors were encountered: