Hello everyone,
I need to resize jqGrid when user resizes a browser. So, I used the following code:
$(window).bind('resize', function () {
$(“#grid”).jqGrid('setGridWidth', 1000);
});
I notified that in IE8 that construction goes to infinite cycle. I've investigated it and found that setGridWidth calls $.jgrid.cellWidth() inside.
$.jgrid.cellWidth() contains following code:
var $testDiv = $(“
“),
testCell = $testDiv.appendTo(“body”).find(“td”).width();
$testDiv.remove();
return testCell !== 5;
Exactly that code forces window to rise resize event in IE8.
I would really appreciate to any suggestions how to fix this problem or how to resize jqGrid when user resizes the browser.
Thank in advance.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top