1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-30 23:52:11 +01:00

New: Column names, if defined, are submitted to the server-side for server-side processing. This is useful for the column ordering information, since it is possible for the server to be expecting a different column order from what DataTables is using - specifically with the column indexes such as sSearch_{i}.

This commit is contained in:
Allan Jardine 2010-10-28 22:07:03 +01:00
parent f57434fc5b
commit 1e1e8f0104

View File

@ -3157,6 +3157,15 @@
aoData.push( { "name": "iDisplayLength", "value": oSettings.oFeatures.bPaginate !== false ?
oSettings._iDisplayLength : -1 } );
/* Column names */
for ( i=0 ; i<iColumns ; i++ )
{
if ( oSettings.aoColumns[i].sName != '' )
{
aoData.push( { "name": "sName"+i, "value": oSettings.aoColumns[i].sName } );
}
}
/* Filtering */
if ( oSettings.oFeatures.bFilter !== false )
{