Trying to Combine Row Deletion and Multi-Selection to Submit

Trying to Combine Row Deletion and Multi-Selection to Submit

kraftomatickraftomatic Posts: 78Questions: 13Answers: 0
edited March 2012 in General
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.

Replies

  • kraftomatickraftomatic Posts: 78Questions: 13Answers: 0
    To piggyback onto #2, I've been able to highlight an individual cell, however the user can only select one cell per row - which I'm not sure how to do. Currently they can select as many cells as they like.

    Thanks.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi,

    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
This discussion has been closed.