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

OnEventBubble won't fire

Asked by Simon
10 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?

mvc
Answer posted by Dan Letecky [DayPilot]
10 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.

http://mvc.daypilot.org/demo/Scheduler/

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
10 years ago.

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

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