PDA

View Full Version : I want to show tooltip only to my parent node of my treepane when i mouse over to it



vijaypatil12
3 Oct 2011, 11:49 PM
I want to show tooltip only to parent node of my treepane when i mouse over to it,
how do i code for this condition

below is my code -

tree = new TreePanel<BaseTreeModel>(store);
tree.setDisplayProperty("userReports");
tree.setCheckable(true);
tree.setAutoLoad(true);
tree.setCheckNodes(CheckNodes.LEAF);
tree.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);

sven
3 Oct 2011, 11:52 PM
Do you want to show them on the hole row, including all the icons or for example only on the text?

vijaypatil12
4 Oct 2011, 12:03 AM
yes, i want to show tooltip to whole parent row

sven
4 Oct 2011, 12:05 AM
yes, i want to show tooltip to whole parent row

I would use QuickTip for this. You should extend TreePanelView and change the template to add the qtip attribute when required.

vijaypatil12
4 Oct 2011, 12:07 AM
Thanks

catalin.ciobanu
4 Oct 2011, 1:43 AM
look here (http://sencha.com/examples/#basicgrid) for qtip