Selecting Multiple DataTable Rows using Shift+Click
820 views
Skip to first unread message
dansm...@gmail.com
unread,
Oct 29, 2015, 5:47:02 PM10/29/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Shiny - Web Framework for R
I was excited to see that the DT team has recently added support for using shift+click to select multiple rows in a datatable (http://editor.datatables.net/examples/simple/multiRow.html). Is there a way to use this feature with shiny-generated datatables?
In a basic example this the one below, multi-selection by clicking on one row at a time works perfectly, but enabling the shift-click behavior isn't as obvious to me.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Shiny - Web Framework for R
I noticed that the reference manual for DT has a 'select.style' parameter that closely mirrors the 'selection' parameter of renderDataTable (http://datatables.net/reference/option/select.style). However, setting selection='os' causes termination with the error message "Error in gregexpr(calltext, singleline, fixed = TRUE) : regular expression is invalid UTF-8".
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dansm...@gmail.com, Shiny - Web Framework for R
The DT package is using a custom implementation of row selections
instead of the official DataTables approach. We hope to catch up with
the official DataTables approach in the near future. For now, you
cannot use selection = 'os'. Sorry.