DayPilot.Action.auto

The auto() method chooses between immediate action submission using notify() and queued submission using queue(), depending on the control notifyCommit mode.

It only applies to ASP.NET WebForms, ASP.NET MVC and Java versions.

Declaration

DayPilot.Action.auto()

Parameters

This method has no parameters.

Notes

Use this method when the action should follow the current notifyCommit setting instead of calling notify() or queue() explicitly.

Example

Change the text of an event with ID "123" and process it according to the current notifyCommit value.

const e = dps.events.find("123");
e.text("New Event Name");  // update the event text
dps.events.update(e).auto();

See Also