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 URLsuccess(function) - optional callback invoked after the resources have been loadederror(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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot