For a long time I am looking for an answer to how to make the fluid height in jqGrid, but I still have not found it.
So, I need fluid height.
I know how to make fluid width:
jQuery(window).resize(function(){
gridId = "grid";
gridParentWidth = $('#gbox_' + gridId).parent().width();
$('#' + gridId).jqGrid('setGridWidth',gridParentWidth);
})
I tried with
gridParentHeight = $('#gbox_' + gridId).parent().height();
$('#' + gridId).jqGrid('setGridHeight',gridParentHeight);
but that is not working.
Is there a solution?