I am adding phpGrid tables in my site. I want the grids to be closed by default, but consulting the documentation I cannot find any argument to set this on initialization.
The grid is closed manually by clicking on an tag with the class "ui-jqgrid-titlebar-close". Using the following code at the bottom of the page I was able to get all of the grids closed up.
$(function() {
// set the data-grids to appear closed by default
$('.ui-jqgrid-titlebar-close').trigger('click');
...
} );
This works in Chrome, Firefox and IE9. Unfortunately this website is meant for internal access and IE9 falls back to "IE8 Standards mode" for intranet sites. In IE8 the click event has no effect.
Any ideas how to close my phpGrids in IE8?