Detect which row was clicked
Detect which row was clicked
I have a question. How can I figure out what row was clicked in this example?
http://datatables.net/release-datatables/examples/api/select_single_row.html
When the user clicks a row I want to get the Guid of a hidden colum. I need this because I want to generate a popup where the user can edit the data in the current cell. I hope someone can help me with this
http://datatables.net/release-datatables/examples/api/select_single_row.html
When the user clicks a row I want to get the Guid of a hidden colum. I need this because I want to generate a popup where the user can edit the data in the current cell. I hope someone can help me with this
This discussion has been closed.
Replies
[code]
datatable.$('tr').on( 'click', function () {
var data = datatable.fnGetData( this );
// ... do something with data
} );
[/code]
Allan