I am using treenodes, and it is possible to change value of tooltiptext, hovewer if i write it to
node.ToolTipText = "value";
this valu is not used, only with eventhandler _ToolTipTextNeeded, however this value is changed on runtime, and in tooltip I always get the value which I showed first time to user, is it possible to Invalidate cache for this tooltip
thanks
almir
5 Answers, 1 is accepted
Thank you for reporting this issue.
To avoid this behavior you, should call InvalidateNode after changing the tool tip text of the node.
this.radTreeView1.Nodes[0].ToolTipText = "new node tooltip text;
this.radTreeView1.InvalidateNode( this.radTreeView1.Nodes[0] );
We will implement this behavior in our upcoming release (Q3 2007). This will make InvalidateNode no longer necessary. Your Telerik points have been updated.
Hope that helps. Contact us again if we could be of further assistance.
Regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I tried it but it did not work,
i am using version 4.0.1.0 (do not know which Q this is)
clickedCat.Description = tb.Text;
clickedNode.ToolTipText = tb.Text;
radTreeView1.InvalidateNode(clickedNode);
but eventhandler ToolTipTextNeeded is not called
this is setupcode for treeview
radTreeView1.AllowEdit = true;
radTreeView1.LoadOnDemand = true;
radTreeView1.ThemeName = "Telerik";
radTreeView1.BackColor = Color.SteelBlue;
radTreeView1.AllowDragDrop = true;
radTreeView1.AllowMultiselect = true;
radTreeView1.ContextMenuStrip = contextMenuStrip1;
radTreeView1.ShowItemToolTips = true;
radTreeView1.ToolTipTextNeeded += new Telerik.WinControls.ToolTipTextNeededEventHandler(radTreeView1_ToolTipTextNeeded);
thanks
The ToolTipTextNeeded event handler is not needed. It is enough to set a node's ToolTipText.
Please, note however that this feature is not available in the version that you are using. Download the latest version of RadControls for WinForms from your account to take advantage of this functionality.
All the best,
Jordan
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
unfortunatelly without eventhandler it is not working at all, if i just set tooltiptext when i create node, i do not see it at all,
i tried setting ShowItemToolTips to false as well but did not help eather,
is there an example of this code? (only way to work is provide tooltipeventhandler.
now i checked it, my version is from 20.09.2007, if I update to sp1 this problem should be solved?
thanks
almir
Yes, you are correct. Please update your version of RadControls for WinForms in order to take advantage of this functionality.
Best wishes,
Jordan
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center