5 Answers, 1 is accepted
0
Hello mrdcpwns,
Thank you for the question. ToolTip does not support the described functionality. However, you can use a ScreenTip in this case. It offers extended formatting capabilities compared to ToolTip. Please, consider the following code:
Do not hesitate to contact me again if you have any other questions.
Best wishes,
Martin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thank you for the question. ToolTip does not support the described functionality. However, you can use a ScreenTip in this case. It offers extended formatting capabilities compared to ToolTip. Please, consider the following code:
void
radScheduler1_ScreenTipNeeded(
object
sender, Telerik.WinControls.ScreenTipNeededEventArgs e)
{
AppointmentElement appointmentElement = e.Item
as
AppointmentElement;
if
(appointmentElement !=
null
)
{
RadOffice2007ScreenTipElement screenTip =
new
RadOffice2007ScreenTipElement();
screenTip.MainTextLabel.Text =
"This is a ScreenTip"
;
appointmentElement.ScreenTip = screenTip;
}
}
Do not hesitate to contact me again if you have any other questions.
Best wishes,
Martin Vasilev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
mrdcpwns
Top achievements
Rank 1
answered on 01 Jan 2010, 11:58 PM
Although I'm not able to test out the code you've provided since I'm more familiar with vb.net, the information you've provided regarding the screentip was really helpful. Thanks.
0
Hello mrdcpwns,
Thank you for your positive feedback. As to C# to VB translation and the reverse you can use this code converter provided by Telerik.
Regards,
Nick
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Thank you for your positive feedback. As to C# to VB translation and the reverse you can use this code converter provided by Telerik.
Regards,
Nick
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Denis Cilliers
Top achievements
Rank 1
answered on 12 Apr 2013, 02:22 PM
Hmm
Is there a simple way to just change the original text to include more text as this RadOffice2007ScreenTipElement
looks nothing like the original screen tip
Is there a simple way to just change the original text to include more text as this RadOffice2007ScreenTipElement
looks nothing like the original screen tip
0
Hello Denis,
Thank you for writing.
In order to manage the tooltip text you should use the ToolTipTextNeeded event. Here is a sample demonstrating how to extend the existing tooltip with some custom text:
I hope this helps. Please do not hesitate to contact us in case you need any further assistance.
All the best,
Nikolay Aleksiev
the Telerik team
Thank you for writing.
In order to manage the tooltip text you should use the ToolTipTextNeeded event. Here is a sample demonstrating how to extend the existing tooltip with some custom text:
Private
Sub
RadScheduler1_ToolTipTextNeeded(sender
As
Object
, e
As
Telerik.WinControls.ToolTipTextNeededEventArgs)
Handles
RadScheduler1.ToolTipTextNeeded
Dim
appElement
As
AppointmentElement = TryCast(sender, AppointmentElement)
If
appElement IsNot
Nothing
Then
e.ToolTipText = e.ToolTipText &
" "
& appElement.Start.TimeOfDay.ToString() &
" "
& appElement.
End
.TimeOfDay.ToString()
End
If
End
Sub
I hope this helps. Please do not hesitate to contact us in case you need any further assistance.
All the best,
Nikolay Aleksiev
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more.
Check out all of the latest highlights.