jquery-datatables-checkboxes icon indicating copy to clipboard operation
jquery-datatables-checkboxes copied to clipboard

Send more data with submit button

Open ihatecodinglikeking opened this issue 7 years ago • 5 comments

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(","));

ihatecodinglikeking avatar Apr 11 '17 21:04 ihatecodinglikeking

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.

mpryvkin avatar Apr 12 '17 00:04 mpryvkin

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

ihatecodinglikeking avatar Apr 12 '17 13:04 ihatecodinglikeking

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.

mpryvkin avatar Apr 14 '17 00:04 mpryvkin

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 avatar Feb 23 '18 08:02 susgo

@susgo, sorry for late reply. I would be curious to see your implementation.

mpryvkin avatar Jun 05 '18 11:06 mpryvkin