How to prevent datatable to fetch the data everytime the size is changed?

How to prevent datatable to fetch the data everytime the size is changed?

noppanitnoppanit Posts: 1Questions: 0Answers: 0
edited May 2012 in DataTables 1.9
Hi

I'm using datatables version 1.9.

On my page, I have a datatable which float to the left and on the right hand side there is a panel which can be collapsed and expanded. However, every time I collapse or expand the panel, the datatable'd fetch the data from the server again which is quite time consuming in my case. How do I prevent that? This is part of my options in datatable initialisation. What I'm expecting is that datatable could recalculate the size every time the size is changed, but it would be good if it's not fetching data from server every time.

.dataTable({
sPaginationType:"full_numbers",
sDom:'lrt<"table_footer"ip>',
sAjaxSource:"ajax.php",
sScrollY:($(window).height() - that.staticHeight) + "px",
bProcessing:true,
bServerSide:true,
bSort:false,
bRetrieve:true,
bSortClasses:false,
bDeferRender: true,
bAutoWidth: false,
bLengthChange:true,
bStateSave:false,
bFilter:true,
iDisplayLength:100,
aoColumns:this.columnMetaData,

Thanks a lot.
This discussion has been closed.