Detect which row was clicked

Detect which row was clicked

noruganoruga Posts: 6Questions: 0Answers: 0
edited August 2012 in General
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

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    See the fnGetData method:

    [code]
    datatable.$('tr').on( 'click', function () {
    var data = datatable.fnGetData( this );
    // ... do something with data
    } );
    [/code]

    Allan
This discussion has been closed.