Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jim Nickel on Oct 29, 2007 22:04
open dhtmlx forum
Header Mouseover

1) How would one change the background colors/image of the Headers for a mouseover event?

2) Is it possible to only do this only for certain columns? I.E. - those columns that are sortable?

Thanks,

Jim
Answer posted on Oct 30, 2007 03:07
Currently there is no any way to attach such event by API, but you can done it by direct dom manipulation, you can access any header cell as

    grid.hdr.rows[1].cells[index]

where index - index of column, by such access you can set any custom event handlers

    grid.hdr.rows[1].cells[index].onmouseover=function(){
       //any custom code here
    }