Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82782

What is the difference between columns.adjust() vs columns.adjust().draw() ?

$
0
0

When I am changing a dropdown value within a DataTable then it brings the user to the top of the Table (titles ) .
After analyzing the code I found that
" table.columns.adjust().draw(false) "
is being used on change of the dropdown to adjust column width of entire table to correctly accommodate new custom column response .

When I changed the code from " table.columns.adjust().draw(false) " to " table.columns.adjust()" it is not bringing the user to the top of the Table which resolves my issue . But I want to know the diff between

" table.columns.adjust().draw(false) " & " table.columns.adjust()" . Thanks in advance .


Viewing all articles
Browse latest Browse all 82782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>