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

Customize tooltip content?

5 Answers 325 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
mrdcpwns
Top achievements
Rank 1
mrdcpwns asked on 27 Dec 2009, 07:13 PM
Is it possible to change the tooltip content when the mouse is over an appointment and make it similar to the one shown on the First Look demo under Scheduler for WPF (containing image,other details,etc.) ?

5 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 30 Dec 2009, 12:32 PM
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:

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
Nick
Telerik team
answered on 05 Jan 2010, 04:17 PM
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.
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

0
Paul
Telerik team
answered on 17 Apr 2013, 12:07 PM
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:
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.
Tags
Scheduler and Reminder
Asked by
mrdcpwns
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
mrdcpwns
Top achievements
Rank 1
Nick
Telerik team
Denis Cilliers
Top achievements
Rank 1
Paul
Telerik team
Share this question
or