This is a migrated thread and some comments may be shown as answers.

treenode ToolTipText

5 Answers 141 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Wolfgang
Top achievements
Rank 1
Wolfgang asked on 09 Nov 2007, 01:41 PM
hi,

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

Sort by
0
Peter
Telerik team
answered on 09 Nov 2007, 02:29 PM
Hello Almir Kazazic,

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
0
Wolfgang
Top achievements
Rank 1
answered on 09 Nov 2007, 04:35 PM
hi

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

0
Jordan
Telerik team
answered on 12 Nov 2007, 08:09 AM
Hello almir,

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
0
Wolfgang
Top achievements
Rank 1
answered on 12 Nov 2007, 09:20 AM
Hi,

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
0
Jordan
Telerik team
answered on 12 Nov 2007, 03:39 PM
Hi almir kazazic,

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
Tags
Treeview
Asked by
Wolfgang
Top achievements
Rank 1
Answers by
Peter
Telerik team
Wolfgang
Top achievements
Rank 1
Jordan
Telerik team
Share this question
or