3.2.0

dynamic tooltips

Is it possible to attach tooltips to a cell within a grid after the grid has been written by the document. My streaming grid has moved on quite nicely thanks to this forum. When certain data arrives it has tool tip text associated with it. At this point I would like to define the tooltip.
I took a look at the image example, blagged the relevant code but cannot make the tooltip appear. I do not get any errors.

Regards,

G

gurok
April 30,
It's this what you are looking for?
for (var col=1; col < (myColumns.length); col++) {
    obj.getTemplate("column",col).setAttribute("title", function(){return this.getProperty("item/tooltip")});
    obj.defineProperty("data/tooltip", function(i, col){return myData[i][col];});
}
obj.setProperty("column/tooltip", function(i){return myColsTips[i]});
Darius
May 3,
When dynamically user selects the options in drop down , Is it possible to display to tooltip corresponding element
Ambica
January 19,
Thanks Darius,
The code you provided is execellent.

we have to Define the Array myColsTips to show tootips for columns too.

thanks for your code.

Regards,
Kumar.S
Kumar S
March 4,
Hi,

Iam also foxed by the problem of providing tooltip dynamically for a drop down. There seems to be a problem because there are no event handler defined for the expanded list as we move over the selection.

Regards,
Dilip
April 22,

This topic is archived.

See also:


Back to support forum