resize and refresh width and height table
resize and refresh width and height table
oscaroxy
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
This discussion has been closed.
Replies
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: