0

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.

user590586
  • 2,830
  • 16
  • 60
  • 95

1 Answers1

2

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();
Community
  • 1
  • 1
Oleg
  • 219,533
  • 32
  • 395
  • 775