I have a question about how to exclude a row(tr) from sorting. I want to make something like this http://ift.tt/2edPCQ9 but I don't want to set the data of the hidden row in jQuery. I suppose that you can do it adding a class to the element and after that manage to not sort this on initializing the datatable on jQuery. Actually I have the initialization like this:
$('.ordered_table').dataTable({
"sPaginationType": "full_numbers",
"dom": '<"toolbar">frtip',
"pagingType": "numbers",
"searching": false,
"pageLength": 20,
columnDefs: [{
targets: ['datatable-nosort'],
orderable: false,
bsortable: false
}],
"aaSorting": []
});
The class datatable-nosort is for not sorting on columns, this is not for rows.
Thanks to everyone!
Aucun commentaire:
Enregistrer un commentaire