I tried the following code, but noticed that it does not provide a scroller for sensitive devices. Therefore, it was decided to configure the JQGRID stylesheet:
$(window).on("resize", function () { var $grid = $("#list"), newWidth = $grid.closest(".ui-jqgrid").parent().width(); $grid.jqGrid("setGridWidth", newWidth, true); });
Please find my hack for JQ Grid to work properly.
/ **** Grid reactivity JQ *** /
#gview_jqgrid, div#myPager {width:100% !important;height:100% !important;} .ui-jqgrid-hdiv, .ui-jqgrid-htable {width:100% !important;height:100% !important;} .ui-jqgrid-bdiv, #jqgrid {width:100% !important;height:100% !important;} .ui-jqgrid .ui-jqgrid-hbox {padding-right:0 !important;} .ui-jqgrid tr.jqgrow td { white-space: pre-wrap !important;} div#gbox_jqgrid { width: 100% !important; overflow-x: scroll; margin-bottom: 80px !important;}
Add this to your custom stylesheet and install a fully responsive JQGrid to view!
Any other suggestions would be welcome. Try and enjoy!
source share