jquery-datatables-checkboxes
jquery-datatables-checkboxes copied to clipboard
Send more data with submit button
Currently if we click checkbox we are getting only "value" of those buttons but I want to send more data along with that like next target data as well as, so is there any way to get that
I am using like var rows_selected = table.column(0).checkboxes.selected(); console.log(rows_selected.join(","));
Please see this comment.
If you use Select extension and client-side processing mode, the code below will get full data for selected rows.
var data = table.rows({ selected: true }).data();
See this example for code and demonstration.
If you don’t use Select extension, I may need to add a method to get a list of selected rows. If you use server-side processing mode, it is not currently possible but the solution could be available.
I am using the extension but processing is Server-side
bcz of server-side I have a problem with select all pages one time and again this one....
is there any luck
In server-side processing mode only current page data is available at any moment. So the solution above will not work.
There might be a way to handle select/deselect event and store selected row data in a global variable, but that will require extra coding.
Is this still needed? I have implemented this feature for our project where we are using bootstrap tables. I could also implement it for this project if it's still needed.
@susgo, sorry for late reply. I would be curious to see your implementation.