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

data changed - force rerender of event

Asked by Doug D
5 years ago.

My events have a onBeforeEventRender to create custom HTML based on some event data as well as other data outside of the event.

When the "outside" data changes, I want to force the scheduler to rerender one or more events. I see there is this:

dpSchedule.events.update(e);

However, that involves sending data to the server. I just want it to rerender the HTML, based on the new data (calling onBeforeEventRender). How do I do that?

Thanks.

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

The events.update() method is the right tool. It only reloads the event in the UI. It doesn't send anything to the server.

In the server-based versions (ASP.NET MVC, ASP.NET WebForms, Java), it's possible to send the change to the server like this:

dp.events.update(e).notify();

But it doesn't apply to the JavaScript version.

Comment posted by Doug D
5 years ago.

Ah ok, so that's what this is talking about:

data (object) - custom data to be sent to the server with the Notify event

Thanks.

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