AJAX Calendar/Scheduling Controls
i have gone through the documentation's. i am not able to understand what a bubble is ?
so the text for the bubble will be obtained after a postback only rite. can it be done in the javascript . otherwise i believe it will get slower
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????
After a quick look, it seems to be correct. Are you able to check if the AJAX callback is initiated (for example using Firefox + Firebug)?
There might be a problem with the AJAX call or there might be a problem with showing the result (what's the doctype you are using, btw?).
Dan,
Thanks for the reply.Its working well with the .NEt application. When it is hosted on to a sharepoint site, its not showing up the bubble.
How to check if AJAX callback is initiated or not?
Thanks for your support.
I am able to make it work. Thanks a lot.
This bubble id is working well in Firefox. But, its not woriking in IE. What could be wrong?
Is there any way to enable AJAX callback on browser?
The problem with sharepoint is that it render pages in quirks mode (i.e. it doesn't specify the doctype). Bubles rely on window dimension functions that do not work properly in quirks mode in IE. See also forums.daypilot.org/Topic.aspx/519/issue_with_bubble_in_ie.
However, I was fixing this issue in DayPilot Pro 4.9 SP3 release. What version of DayPilot are you using?
Thank you Dan.
We are using 4.9.1456.0 version of DayPilot. If you fix this issue, please let us know. It is very urgent requirement for our project.
Sorry for the delay, I was out of office last week. As I mentioned, the problem was fixed in 4.9 SP3 (version 4.9.1490.0). You should upgrade to that (or later) version to get it fixed.
DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java