Order option extended also for string values instead of only numbers
Order option extended also for string values instead of only numbers
Mausino
Posts: 61Questions: 19Answers: 0
When i am using serverSide is very coplicated create for many modules some index of my columns because the order option only allow this
"order": [[ 0, 'asc' ],
Will nice in v2 will exist something like OrderData
which will work like
"ordeData": [[ 'name', 'asc' ],
and will take the column names from data of Columns
or ColumnsDefs
options.
columns: [
{ data: 'DT_RowId'},
{ data: 'id'},
{ data: 'name'}
],
This question has an accepted answers - jump to answer
Answers
Hi,
I am indeed looking into options for exactly that. I actually did so as part of v1.10, but it was providing to be difficult with backwards compatibility.
Many thanks for the suggestion - much appreciated!
Regards,
Allan