Show / Hide columns without reloading unchanged data everydata
Show / Hide columns without reloading unchanged data everydata
I have a bit of a performance issue. I have a datatable that I made responsive by showing / hiding columns of the table if the current Viewport isnt big enough. Now, some of columns have a picture that is loaded from internet. Whenever I show or hide a column, every single picture gets reloaded, which makes everything very slow.
My question is: Is there a way to show / hide columns without having to reload all the data. I am not changing any data in the table. All I do is show or hide some columns.
I hide the columns like this:
Table.DataTable().column([3, 4, 5, 7, 9]).visible(false);
Thanks
Answers
Ho @ocramt ,
I tried it with this example of a responsive table - there's an image in the table that sounds like how you described it, but when I open and close the columns, there's no network traffic grabbing the image again.
Would you be able to provide a similar example that demonstrates the problem, please - that'll help understand why you get those reloads.
Cheers,
Colin