In my project, we want show customised tooltips.
Eventhough I follwed all the steps to create the extended tooltip(BubbleID) I was not able to get it.
This is my daypilotscheduler:
<DayPilot:DayPilotScheduler ID="DayPilotScheduler2" Height="700px" runat="server"
Days="7" Width="800px" StartDate="2007-01-01" DataStartField="start" DataEndField="end"
DataTextField="name" DataValueField="id" HeaderFontSize="8pt" HeaderHeight="17"
DataResourceField="column" EventHeight="40" CellDuration="60" CellWidth="20"
TimeRangeSelectedHandling="CallBack" EventMoveHandling="CallBack" EventResizeHandling="CallBack"
OnEventMove="DayPilotScheduler2_EventMove" OnEventResize="DayPilotScheduler2_EventResize"
OnTimeRangeSelected="DayPilotScheduler2_TimeRangeSelected" DataTagFields="start,id,name"
EventClickHandling="JavaScript" EventClickJavaScript="alert('Tag["name"]: ' + e.tag("name") + '.')"
EventResizeJavaScript="alert(newStart.toGMTString() + '\n' + newEnd.toGMTString());"
ClientObjectName="dps1" OnRefresh="DayPilotScheduler2_Refresh" BubbleID="DayPilotBubble1" ShowToolTip="false">
</DayPilot:DayPilotScheduler>
=======================================
This is my DaypilotBubble:
<DayPilot:DayPilotBubble ID="DayPilotBubble1" runat="server" OnRenderContent="DayPilotBubble1_RenderContent"
ClientObjectName="bubble" BorderColor="Black">
</DayPilot:DayPilotBubble>
=======================================
This is the method:
protected void DayPilotBubble1_RenderContent(object sender, RenderEventArgs e)
{
if (e is RenderEventBubbleEventArgs)
{
RenderEventBubbleEventArgs re = e as RenderEventBubbleEventArgs;
re.InnerHTML = "<b>Event details</b><br />Here is the right place to show details about the event with ID: " + re.Value + ". This text is loaded dynamically from the server.";
}
else if (e is RenderResourceBubbleEventArgs)
{
RenderResourceBubbleEventArgs re = e as RenderResourceBubbleEventArgs;
e.InnerHTML = "<b>Resource header details</b><br />Value: " + re.ResourceId;
}
else if (e is RenderCellBubbleEventArgs)
{
RenderCellBubbleEventArgs re = e as RenderCellBubbleEventArgs;
e.InnerHTML = "<b>Cell details</b><br />Resource:" + re.ResourceId + "<br />From:" + re.Start + "<br />To: " + re.End;
}
}
Could you please suggest me where i might have gone wrong????