Hello Jon The Nerd,
Thank you for the question.
Our RadOffice2007ScreenTip supports displaying text and images and you can use it for the nodes of a RadTreeView. To do so, first subscribe to the ScreenTipNeeded event of the RadTreeView. Then, in the event handler set properties of the RadOffice2007ScreenTip:
RadOffice2007ScreenTipElement screenTip = new RadOffice2007ScreenTipElement(); |
Size size = new Size(120, 50); |
Padding pad = new Padding(2); |
|
void radTreeView1_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e) |
{ |
TreeNodeUI node = e.Item as TreeNodeUI; |
if (node != null) |
{ |
screenTip.MainImage.Image = WindowsApplication6.Properties.Resources.gear; |
screenTip.MainImage.Padding = pad; |
screenTip.CaptionLabel.Padding = pad; |
screenTip.CaptionLabel.Text = "Customers View"; |
screenTip.MainTextLabel.Text = node.Text; |
screenTip.EnableCustomSize = true; |
screenTip.AutoSize = false; |
screenTip.Size = size; |
node.ScreenTip = this.screenTip; |
} |
} |
I hope this helps. If you have additional questions, feel free to contact me.
Greetings,
Nikolay
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.