Mixing 'ROW SLECT' with addign a row.
Mixing 'ROW SLECT' with addign a row.
scotty2540
Posts: 14Questions: 1Answers: 0
How do you know the row that was added so you can also add a class to it.
I press a button, and the script adds a row. But I can't get at that row.
Specifically I want to combine this:
http://datatables.net/release-datatables/examples/api/add_row.html
with this:
http://datatables.net/release-datatables/examples/api/select_single_row.html
In that the new row added should allow me to call "???.addClass('row_selected'); to it.
But since this is in response to a button press, I can't find anything that allows me to add the class to that row.
??? .fnAddData(...) isn't returning me the row object.
How do I find it, so I can make it 'selected' ?
-Scott
I press a button, and the script adds a row. But I can't get at that row.
Specifically I want to combine this:
http://datatables.net/release-datatables/examples/api/add_row.html
with this:
http://datatables.net/release-datatables/examples/api/select_single_row.html
In that the new row added should allow me to call "???.addClass('row_selected'); to it.
But since this is in response to a button press, I can't find anything that allows me to add the class to that row.
??? .fnAddData(...) isn't returning me the row object.
How do I find it, so I can make it 'selected' ?
-Scott
This discussion has been closed.