View Full Version : tooltips on a treePanel leaves

28 Oct 2009, 3:10 AM

How to set tooltips on my treePanel's leaves?
I've tried the following without success:

treePanel.setLabelProvider(new ModelStringProvider<BaseTreeModel>() {

public String getStringValue(BaseTreeModel model, String property) {

String myId = model.get("id");
String name = model.get("label");
return "<span qtip='" + name + "' qtitle='" + myId + "'>" + name +"<span>";
QuickTip tip=new QuickTip(treePanel);

If I do that this way tooltips are shown on the root items but when I try to expand them errors come.