Setting tooltip delay for an appointment

2 posts, 0 answers
  1. Pirjo
    Pirjo avatar
    10 posts
    Member since:
    Mar 2013

    Posted 29 Jun 2015 Link to this post

    Hi,

     In my code I'm adding appointments to a radScheduler like this:

     Dim app As New Appointment

    app = New Appointment(Convert.ToDateTime(dr("StartTime")), Convert.ToDateTime(dr("EndTime")))

    app.ToolTipText = "Some text"

     

    How can I set a delay time for the tooltip, i.e. how long the tooltip text is displayed?

     

    Regards,

    Pirjo

  2. Dess | Tech Support Engineer, Sr.
    Admin
    Dess | Tech Support Engineer, Sr.  avatar
    3321 posts

    Posted 02 Jul 2015 Link to this post

    Hello Pirjo,

    Thank you for writing.

    In order to apply a delay for the tool-tip, you can use the RadScheduler.ToolTipTextNeeded event and set the ToolTipTextNeededEventArgs.ToolTip.InitialDelay property to the desired delay interval:
    Private Sub ToolTipTextNeeded(sender As Object, e As Telerik.WinControls.ToolTipTextNeededEventArgs)
        If Not String.IsNullOrEmpty(e.ToolTipText) Then
            e.ToolTip.InitialDelay = 2000
        End If
    End Sub

    I hope this information helps. Should you have further questions, I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top