Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35272

Columns Order Direction can be accessed from data function?

$
0
0

Hello,

I am using datatables 1.10 and I have defined a data function in the ajax property of my datatables options as follow:

"ajax":
{
url: AllMxEnvironments.Config.AjaxSource,
data: function (d)
{
}
}

The problem is in the property d I can access all my changes in the datatable except for sorted column index and OrderDirection. Is there a way to access the ColumnOrder and OrderDirection properties of each column within this function? In case I can't can you please tell me how to get the object in the preDrawCallback or on the draw event of the table?

Thanks,
Jhonny.


Viewing all articles
Browse latest Browse all 35272

Trending Articles