can we change the frozen column's header height in jqgrid?
I did that by:
grid.closest('div.ui-jqgrid-view').find('table.ui-jqgrid-htable th:first-child').css("height", "25px");
but it is not working! any idea?
can we change the frozen column's header height in jqgrid?
I did that by:
grid.closest('div.ui-jqgrid-view').find('table.ui-jqgrid-htable th:first-child').css("height", "25px");
but it is not working! any idea?
You don't posted more full code which you so I have to guess what one need to do in your situation.
In any way one should search for the header of the frozen column in another way. One can do either
var $fhDiv = grid.closest(".ui-jqgrid-view").find(">.frozen-div.ui-jqgrid-hdiv");
or
var $fhDiv = $(grid[0].grid.fhDiv);
To set the height of the header one have to set both the height of the div of the frozen header and the height of the row in which contains the headers:
$fhDiv.height(50).css("z-index", "1");
$fhDiv.find(">.ui-jqgrid-htable .ui-jqgrid-labels").height(50);
One can see that I set z-index
of the div of the frozen header additionally. It could be required if you set large enough height value. The value of z-index
, which one need to set, could be different depend on where you use jqGrid on your page. The value have to be large enough to place the div of the frozen header over the main grid.