Reordering of column causes data extraction error

Reordering of column causes data extraction error

newtodatatablesnewtodatatables Posts: 31Questions: 0Answers: 0
edited May 2011 in DataTables 1.8
Hi there, DataTables is really a cool tool to use! The column reordering provides increased usability. However, I am having problems extracting data from a selected column if a user reorders the table.

[code]
$('#table tbody tr').live('dblclick', function () {
var aData = $('#table').dataTable().fnGetData( this );
$( ".tabs" ).tabs('add', "jsp/test.jsp?id="+aData[0], "test");

});
[/code]

("ID") is my first column and is that data I want to extract when a user double clicks on the row. However, if a user reorders and shifts the ID column to the 3rd column, I will get an error when the user double clicks on the row. How do I solve this? Is there any way I can extract data based on the column header name? Thanks!

Replies

  • newtodatatablesnewtodatatables Posts: 31Questions: 0Answers: 0
    bump up for help!
  • newtodatatablesnewtodatatables Posts: 31Questions: 0Answers: 0
    is it possible to prevent / lock the first column so that user cannot re-order the first column?
  • newtodatatablesnewtodatatables Posts: 31Questions: 0Answers: 0
    my bad.. after an extensive search i found the solution using iFixedColumns. Thank you for such a wonderful table. I will be making a donation at the end of my project.
This discussion has been closed.