How to dynamically change jQuery Datatables height?

You can used following code. Var calcDataTableHeight = function() { return $(window).height()*55/100; }; var oTable = $('#reqAllRequestsTable'). DataTable({ "sScrollY": calcDataTableHeight()}); $(window).

Resize(function () { var oSettings = oTable.fnSettings(); oSettings.oScroll. SY = calcDataTableHeight(); oTable.fnDraw(); }).

Thanks man. You saved my life :) – YetAnotherCoder Oct 3 at 12:13.

I think you can change the height of the table by css $(window). Resize(function(){ $('#yourtable'). Css('height', '100px'); }).

Thanks for the suggestion. I tried but no luck. – YetAnotherCoder Oct 3 at 11:39.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions