How can i get the height size of : header title bar, and the size of the bar above the header , where the caption is.
Thank's In Advance.
How can i get the height size of : header title bar, and the size of the bar above the header , where the caption is.
Thank's In Advance.
In the answer I described the anotomy of jqGrid elements. Small modification of In another answer to you will give
var mygrid = $("#list");
var header_height=$("thead:first tr.ui-jqgrid-labels", mygrid[0].grid.hDiv).height();
You can also use $.outerHeight if it is more suitable for you as $.height. In the same way the caption height can be calculated with
var caption_height=$("div#gview_"+mygrid[0].id+" > div.ui-jqgrid-titlebar").height();