resize and refresh width and height table

resize and refresh width and height table

oscaroxyoscaroxy Posts: 9Questions: 0Answers: 0

Do exist a method "refresh" without to lose every sort after I change width and height of the table?
Now I use an event resize in order to rebuild the table, but so I lose every order ...
thanks

Replies

  • oscaroxyoscaroxy Posts: 9Questions: 0Answers: 0

    I solved:

    $(window).load(function(){
    $(".resizable").on("mresize",function(){
    var h = parseInt(($('#bx-result-list').css('height')).replace('px','')) - 40;
    $('#tbAnagraficaCv_wrapper .dataTables_scrollBody').css("height",h+"px").css("max-height",h+"px");
    $('#tbAnagraficaCv').dataTable().fnDraw(false);
    });
    });

    WHERE:

This discussion has been closed.