PDA

View Full Version : [CLOSED] treepanel tooltip not destroyed and shows on grid



RCM
Nov 11, 2013, 10:43 PM
Hi,

we have a situation where the tooltip rendered on a treenode is displayed as the row tooltip for the grid. this affects the grids on the same page as the treepanel and the grid rendered after the user navigate away from the page the contains the tooltip. In situation where the grid also have a row tooltip implemented, the grid shows the grid tooltip as well as the treepanel tooltip.

The tooltip for the treepanel is created as shown below.



var node = {
text: data.Title,
Type: data.Type,
Model: data,
leaf: false,
children: [],
qtip: "my tooltip"

};


how can this tooltip be prevented from rendering on grid row/

regards

Baidaly
Nov 12, 2013, 2:06 AM
Hello!

You need to use ToolTip instead of QTip then you can prevent ToolTip from displaying using beforeShow listener, like in the following post: http://forums.ext.net/showthread.php?21034&p=90830&viewfull=1#post90830

Daniil
Nov 12, 2013, 9:57 AM
Hi @RCM,

Do you mean that a qtip defined for a TreePanel's Node somehow appears for a GridPanel's row? Sounds very buggy, but, I am afraid, we cannot help without a test case to reproduce.

RCM
Nov 12, 2013, 3:50 PM
Hello!

You need to use ToolTip instead of QTip then you can prevent ToolTip from displaying using beforeShow listener, like in the following post: http://forums.ext.net/showthread.php?21034&p=90830&viewfull=1#post90830

i used the code below and no tooltio appeared on the treenode



var node = {
text: data.Title,
Type: data.Type,
Model: data,
leaf: false,
children: [],
tooltips: [
{ xtype: "tooltip",
listeners:
{
show: {
handler: function () {
this.body.dom.innerHTML = "<b>" + data.ToolTip + "</b>";
}
}
}
}]
};


I also tried the code below and no tool tip showed



var node = {
text: data.Title,
Type: data.Type,
Model: data,
leaf: false,
children: [],
tooltip: "test tool tip"
};

Baidaly
Nov 12, 2013, 4:29 PM
Could you provide a full sample to reproduce. Please, read the following thread: http://forums.ext.net/showthread.php?3440