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

BeforeEventRender e.BubbleHtml not working

Asked by Miles
9 years ago.

I'm setting the e.BubbleHtml property in the BeforeEventRender method but when I view the calendar, I only get the alt text of the event's DataTextField property. What else do I need to do to not cause the page to postback when I need this information? (I don't want to use the callback method as I have all of the information when the calendar is databound)

<DayPilot:DayPilotMonth ID="dayPilotMonthMain" runat="server" Width="100%" DataStartField="StartTime" DataEndField="StopTime" DataTextField="Title"
DataValueField="UniqueID" onbeforeeventrender="dayPilotMonthMain_BeforeEventRender" CssOnly="true" />

protected void dayPilotMonthMain_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.Month.BeforeEventRenderEventArgs e)
{
CustomDayPilotCalendarEvent customEvent = e.DataItem.Source as CustomDayPilotCalendarEvent;
e.BubbleHtml = customEvent.Description;

if (!String.IsNullOrEmpty(customEvent.CssClass))
e.CssClass = customEvent.CssClass;
if (customEvent.IsAllDay)
e.CssClass += " AllDayEvent";
//
}

Answer posted by Miles
9 years ago.

Looks like I didn't have the DayPilot:DayPilotBubble control on the page

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.