Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on Nov 30, 2007 13:30
open dhtmlx forum
Height of attach header row/cell

Hi,
I need to calculate the height of attach header.
I used mygrid.hdr.rows[1].cells[2].style.height,but its not coming.
Could you give the list properties applied for mygrid.hdr.rows[1].cells[2] and mygrid.hdr.rows[1].cells[2].style.
Thanks in Advance.
Answer posted on Dec 03, 2007 02:46
The height of row lines is not fixed by default ( they automatically adjust to content inside )
If you need to get heitght of some cell you can use
    mygrid.hdr.rows[1].cells[2].offsetHeight

>>Could you give the list properties applied for
Actually there is no any default style or property assigned to header cell, the only styling added by
    div.gridbox table.hdr td {
    div.gridbox table.hdr td div.hdrcell{
css classes ( stored in dhtmlxgrid.css, please beware that there are variations of this classes for each skin )