Server side processing -

Server side processing -

romepatelromepatel Posts: 3Questions: 0Answers: 0
edited March 2010 in General
Hi,

I am using Server side processing and its working fine,
but now i need id for each tr.........
I am unable to generate the id for each tr.
Please help me out.........!!!

Thanks in Advance
Rome

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    If you use fnRowCallback() ( http://datatables.net/usage/callbacks#fnRowCallback ) you can assign whatever ID you want to each row. If you want to base it on information in a column, this is quite readily done as well (based on information in the parameters).

    Allan
  • spitfire45spitfire45 Posts: 18Questions: 0Answers: 0
    As you will probably glean from my question, my knowledge of JQuery is not great!

    Using the fnRowCallback function what would add add after

    [code]"fnRowCallback": function( nRow, aData, iDisplayIndex ) { [/code]

    to add the an index value from the first hidden column - aData[0] to the each rows id attribute.
This discussion has been closed.