How to get the column name of sort request, but not index number?

How to get the column name of sort request, but not index number?

lifeng_coollifeng_cool Posts: 2Questions: 0Answers: 0
edited May 2010 in General
An index value assigned to iSortCol_(int) variable when you click the table header and request for server side sorting.

I need to sort just by the request field name. How could I get the sName of the sort column name? If I specified aoColumns and sColumn

Replies

  • lifeng_coollifeng_cool Posts: 2Questions: 0Answers: 0
    edited May 2010
    I fond a simple sulotion . just define a array of the column names , and get the specified name by the iSortCol_(int) index.

    another question is that aoColumns seems doesn't work , the data order is always the same . why ? any other parameters should be specified ?

    I'm new to datatables....
This discussion has been closed.