View Full Version : Conditionally show a qtip on a treenode

7 Jul 2010, 3:15 AM

Any tips how to make a qtip on a treenode only visible if the text of the node is not completely visible (a scrollbar is shown (if configured))

See attached image, when hovering over Combination Examples the qtip with the full text of the node (or whatever configured) should be visible, but not on the others nodes..


7 Jul 2010, 3:40 AM
You could try using Animal's DataTip and only show the tip if the text is bigger than the container.

7 Jul 2010, 4:07 AM
Thanks. (and i see a possibility to do the same inside a grid column, only show a tooltip if text is bigger than column width)..

but first start with the treenode. How can i find out if the text is bigger than the container?

7 Jul 2010, 4:11 AM
Query the width of the text and the container (use Firebug to locate the correct elements).