Can use aDataSort with mDataProp (mDataProp not a function) ?
Can use aDataSort with mDataProp (mDataProp not a function) ?
jinjung
Posts: 24Questions: 0Answers: 0
Hello,
For all my pages, using aDataSort with mDataProp has no effect. The sorting is always on the click sorting column.
[code]
"aoColumnDefs": [
{
"sTitle": "+",
"mDataProp": null,
"bSortable" : false,
"bSearchable": false,
"sClass": "center row_detail",
"sDefaultContent": '',
"aTargets": [ 0 ],
"sWidth": 20
},
{ "sTitle": "foo", "mDataProp": "name_foo", "aTargets": [ 1 ], "aDataSort": [ 1, 2 ] },
{ "sTitle": "bar", "mDataProp": "name_bar", "aTargets": [ 2 ] },
{ "sTitle": "baz", "mDataProp": "name_baz", "aTargets": [ 3 ] }
],
[/code]
(tests with DT 1.9.0), Jinjung.
For all my pages, using aDataSort with mDataProp has no effect. The sorting is always on the click sorting column.
[code]
"aoColumnDefs": [
{
"sTitle": "+",
"mDataProp": null,
"bSortable" : false,
"bSearchable": false,
"sClass": "center row_detail",
"sDefaultContent": '',
"aTargets": [ 0 ],
"sWidth": 20
},
{ "sTitle": "foo", "mDataProp": "name_foo", "aTargets": [ 1 ], "aDataSort": [ 1, 2 ] },
{ "sTitle": "bar", "mDataProp": "name_bar", "aTargets": [ 2 ] },
{ "sTitle": "baz", "mDataProp": "name_baz", "aTargets": [ 3 ] }
],
[/code]
(tests with DT 1.9.0), Jinjung.
This discussion has been closed.
Replies
Thanks,
Allan
JS error :
"NetworkError: 404 Not Found - http://live.datatables.net/apehix/sources/objects.txt?_=1334927136838"
or
"NetworkError: 404 Not Found - http://live.datatables.net/release-builds/jquery.datatables.1.9.0.js"
Allan