DayPilot.Scheduler.rows.load

The rows.load() method loads resource data from the specified URL using an AJAX call.

Declaration

DayPilot.Scheduler.rows.load(url[, success[, error]])

Parameters

  • url (string) - JSON endpoint URL

  • success (function) - optional callback invoked after the resources have been loaded

  • error (function) - optional callback invoked if the request fails

Notes

The HTTP method (GET/POST) is specified using the rowsLoadMethod property.

Example

dp.rows.load("/api/resources", (args) => {
  dp.message("Resources loaded");
});

See Also

DayPilot.Scheduler.rowsLoadMethod

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript