Serverside table redrawing on resize
Serverside table redrawing on resize
Hello,
I'm not sure I can provide an example of what is going on without writing a ton of code. I am using jQuery UI Resizeable to dynamically resize a table. For some reason whenever the table is resized it appears to be rebuilt. For example if I have a column that does this:
{
title: 'Id',
data: data => {console.log('rebuilt'); return data.id}
name: 'id'
},
and I resize the table I get 'rebuilt' a bunch of times. I have tried disabling the responsive extension but that did nothing. The only thing that works is when I disable serverSide and load data using the "data" property. I couldn't find any documentation on this. I have multiple tables and the only one that rebuilds on resize is the one that loads data on the server side.
I saw that redraws call new ajax requests but I'm not sure why the table is redrawing since the documentation here says only the following will redraw "all paging, searching, ordering"
Answers
I tried it here and its not sending an ajax request when I adjust the table size.
http://live.datatables.net/hayaseda/1/edit
Maybe you can update my example to replicate your issue.
Kevin