I’m using the following Javascript to auto resize the grid to full width and height. However, whenever I resize my browser window and then use the Grid Reload button the grid does two Ajax calls and retrieves two sets of data creating duplicate rows.
jQuery(document).ready(function(){
jQuery(window).bind(“resize”, function () {// adjust height on resize
jQuery(“#list1”).jqGrid(‘setGridHeight’,jQuery(window).innerHeight()-330);
jQuery(“#list1”).jqGrid(‘setGridWidth’, parseInt($(window).width() – 220));
}).trigger(“resize”);
});
1 Answers
Hello,
I’m unable to understand the issue how it is linked with this code.
Please share your grid code and screen recording ( https://screencastify.com/ ) of the issue.
Your Answer