Treegrid header tooltip

Hi there,
my problem is this. I have a treegrid with some checkboxes, so there is no need to have wide columns, there could be a small headline for each column. To help the user I’d like to show the full header only in a tooltip. How to do this? Is there something like this:
mygrid.setTitle(“ABC,DEF,…”) ?

mygrid.cells(0,0).setAttribute… did not work for me.

Hoping to hear from you soon.
Daisy

You can set title for header cell with following code:

grid.setHeader("<span title='my custom title'>Column label</span>");

Hi Olga,
that sounds tricky, but I’m afraid it will set all column headers to the same string.
I’ve tried
mygrid.hdrBox.setAttribute(“title”,“first colum,second column,third column”);
but it sets the header of all columns to the whole string.

Thanks in advance
daisy

There is no easy way to set tooltips for all header cells at onece. You can set tittle attribute for specific cell with following code:

mygrid.hdr.rows[1].cells[0].firstChild.setAttribute("title","first colum");

Yeh, it works! :stuck_out_tongue: