sorting datatables on date with icons

sorting datatables on date with icons

ramsmartnetramsmartnet Posts: 6Questions: 0Answers: 0
edited April 2014 in DataTables
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

Replies

  • allanallan Posts: 54,171Questions: 1Answers: 8,455 Site admin
    Please follow the forum rules:

    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
  • ramsmartnetramsmartnet Posts: 6Questions: 0Answers: 0
    usecase:

    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 ] },


    ]

    });
  • ramsmartnetramsmartnet Posts: 6Questions: 0Answers: 0

    template:

    <td>
    {{{checkIOStatus}}} <i class="icon-edit" id="visitorEditIcon"></i>
    </td>

  • ramsmartnetramsmartnet Posts: 6Questions: 0Answers: 0
    edited May 2014

    <td> <i class="icon-edit" id="visitorEditIcon"></i>{{{checkIOStatus}}} </td>

This discussion has been closed.