After apply filter the rowcount values are gone

After apply filter the rowcount values are gone

avamocravamocr Posts: 5Questions: 0Answers: 0

Hi, I'm using this example for my project: http://jsfiddle.net/nanoquantumtech/RgKPZ/ , on this example if you search for something the total rowcount numbers (red on the collapsible group) disappear after the search function, can you please help me understand how to keep those rowcounts numbers after the filter is applied?

Thank you for your help

Replies

  • avamocravamocr Posts: 5Questions: 0Answers: 0

    Hi guys, any help on this I will appreciate it...

    Thanks

  • avamocravamocr Posts: 5Questions: 0Answers: 0

    I did try to call the fnUpdate api funtion, but I keep getting this error:

    Uncaught TypeError: Cannot set property '_aData' of undefined

    This is the code:
    $('.dataTables_wrapper').find('[id|=group-id]').each(function () {
    var rowCount = $(this).nextUntil('[id|=group-id]').length;
    $(this).find('td').append($('<span />', { 'class': 'rowCount-grid' }).append($('<b />', { 'text': rowCount })));
    var row = $(this).closest("tr").get(0);
    var aPos = $('#example').fnGetPosition(row);
    $('#example').fnUpdate($(this).find('td').html(),aPos);
    });

This discussion has been closed.