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

OnEventBubble won't fire

Asked by Simon
8 years ago.

This is in my view:

@Html.DayPilotBubble("bubble", new DayPilotBubbleConfig { CssOnly = true, CssClassPrefix = "bubble_default" })

@Html.DayPilotScheduler("dps", new DayPilotSchedulerConfig()
EventBubble = "bubble",

Serverside I got this in my DayPilotScheduler:

protected override void OnEventBubble(EventBubbleArgs e)
e.BubbleHtml = "Event details for id: " + e.Id;

When I hover an event nothing happens. I'm NOT assigning any value to BubbleHtml (or StaticBubbleHTML for that matter) in OnBeforeEventRender.

If I set a breakpoint inside OnEventBubble it won't get hit. There's no ajax call occuring either when I hover an event.
How do I make dynamic event bubble work?

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

In the latest demo (7.7.5664) it seems to work fine and there hasn't been any problem with the bubble recently.

Anyway, it's important that the bubble declaration is above the scheduler declaration in the MVC view source.

You can also verify that the bubble object is assigned properly by typing the following in the JavaScript console:

> dps.bubble

It should return the bubble object.

Comment posted by Simon
8 years ago.

Didn't notice the latest release.
Upgraded from SP4 to SP5 and now it's working as expected.

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