Whats the best way to set height of datatables dynamically on window.resize?
Whats the best way to set height of datatables dynamically on window.resize?
bbarani
Posts: 32Questions: 0Answers: 0
I have multiple tabs in my application with multiple datatables.
I am trying to figure out a way to adjust the height of datatables based on the screen size.
I tried the below function, but it doesnt seem to increase the height of datatable when the window is resized. Any suggestions would be very helpful?
$(window).resize(function() {
var table = $.fn.dataTable.fnTables(true);
if ( table.length > 0 ) {
for(var i=0;i
I am trying to figure out a way to adjust the height of datatables based on the screen size.
I tried the below function, but it doesnt seem to increase the height of datatable when the window is resized. Any suggestions would be very helpful?
$(window).resize(function() {
var table = $.fn.dataTable.fnTables(true);
if ( table.length > 0 ) {
for(var i=0;i
This discussion has been closed.
Replies
$(window).resize(function() {
var table = $.fn.dataTable.fnTables(true);
if ( table.length > 0 ) {
for(var i=0;i
Allan