Trying to Combine Row Deletion and Multi-Selection to Submit
Trying to Combine Row Deletion and Multi-Selection to Submit
kraftomatic
Posts: 78Questions: 13Answers: 0
Hey All,
I've been going through the examples and the functionality here is great. However I'm trying to incorporate a few different things into a table I'm working on:
1. Ability to delete a row of data (done, but I think I may need to add a Delete icon next to each row instead, to accomodate the below two requirements)
2. Ability to select an individual TD cell, for each row of data and submit. A combination of the following examples:
http://www.datatables.net/release-datatables/examples/api/form.html ( without check box, just clicking the cell and highlighting)
http://www.datatables.net/release-datatables/examples/api/select_single_row.html
3. Ability to "Select All" for a given TD column of data. Similar to:
http://www.datatables.net/release-datatables/examples/api/form.html ( with check box above column heading)
Basically, when submitting data, there are two options. Either submit one TD value per TR, or "Select All" from one of the TD's, which includes all the rows, if that makes sense.
I'm trying to figure out the best way to combine functionality to make that possible. Any advice would be greatly appreciated.
Thanks.
I've been going through the examples and the functionality here is great. However I'm trying to incorporate a few different things into a table I'm working on:
1. Ability to delete a row of data (done, but I think I may need to add a Delete icon next to each row instead, to accomodate the below two requirements)
2. Ability to select an individual TD cell, for each row of data and submit. A combination of the following examples:
http://www.datatables.net/release-datatables/examples/api/form.html ( without check box, just clicking the cell and highlighting)
http://www.datatables.net/release-datatables/examples/api/select_single_row.html
3. Ability to "Select All" for a given TD column of data. Similar to:
http://www.datatables.net/release-datatables/examples/api/form.html ( with check box above column heading)
Basically, when submitting data, there are two options. Either submit one TD value per TR, or "Select All" from one of the TD's, which includes all the rows, if that makes sense.
I'm trying to figure out the best way to combine functionality to make that possible. Any advice would be greatly appreciated.
Thanks.
This discussion has been closed.
Replies
Thanks.
It sounds to me that TableTools might be useful for you. TableTools has built in row selection options, including select all / select none pre-defined buttons, full row highlighting / selection and an API to deal with selected rows. Have a look at this: http://datatables.net/release-datatables/extras/TableTools/select_multi.html . Does that look like what you are after?
Regards,
Allan