sorting datatables on date with icons
sorting datatables on date with icons
ramsmartnet
Posts: 6Questions: 0Answers: 0
i want to sort the table using datatables . but one of table column contains date with some icon. i applied sorting (descending order) on that column, but it is not working.
Can any one help me
Can any one help me
This discussion has been closed.
Replies
1. Do not post duplicates
2. Link to a test case
I have deleted your duplicate question. Also how would you expect an image sort to occur? On the url? A test case would be useful.
Allan
here in row template, i am displaying "checkIOStatus" along with some "ICON".
in controller, i applied sorting on that column. but sorting is not working...
templates:
ListTemplate.html
Current Status
RowTemplate.html
{{{checkIOStatus}}}
Controller:
var dataTable = $('#ListTable').dataTable({
"sPaginationType": "full_numbers"
,"aaSorting": [[ 7, "desc" ]]
,"aoColumnDefs": [
{'bSortable': false, 'aTargets': [0,9]} ,
{ "sSortDataType": "dom-text", "aTargets": [ 7 ] },
]
});
template:
<td>
{{{checkIOStatus}}} <i class="icon-edit" id="visitorEditIcon"></i>
</td>
<td> <i class="icon-edit" id="visitorEditIcon"></i>{{{checkIOStatus}}} </td>