search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

tooltip

Asked by Serena
7 years ago.

hi , i am using a daypilot lite scheduler and i need to set tooltip on each event created how to do that ?

Comment posted by Serena
7 years ago.

below is my code : and i need to add tooltip in this event how to do that :

Protected Sub DayPilotScheduler1_BeforeEventRender(sender As Object, e As BeforeEventRenderEventArgs)
If DayPilotScheduler1.DataSource Is Nothing Then Exit Sub
Dim color As String = TryCast(e.DataItem("color"), String)
Dim DocNumber As String = TryCast(e.DataItem("DocNumber"), String)
Dim Client_Name As String = TryCast(e.DataItem("Client_Name"), String)
e.DurationBarColor = color
e.BackgroundColor = "#EBEDF3" ''Gray
Dim archived As String = TryCast(e.DataItem("Archived"), String)
Dim S_archived As Integer = ConvertStrToInt(archived)
Select Case S_archived
Case 1 'Archived
e.Html = "<div class='StrikeLabel'>" + Client_Name + "<br />" + DocNumber + " <br /></div>"
Case Else 'Open/OnHold
e.Html = "<div class='NormalLabel'>" + Client_Name + "<br />" + DocNumber + " <br /></div>"

End Select

End Sub

Answer posted by Dan Letecky [DayPilot]
7 years ago.

There is a property of BeforeEventRenderEventArgs called ToolTip:

Protected Sub DayPilotScheduler1_BeforeEventRender(sender As Object, e As BeforeEventRenderEventArgs) 
  ' ...
  e.ToolTip = "ToolTip Text"
End Sub
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.