The rows.update() method updates the specified JavaScript Scheduler row.
Declaration
DayPilot.Scheduler.rows.update(row);Parameters
row(DayPilot.Row | resource data object) - Scheduler row to update
Notes
You can get the DayPilot.Row object using rows.find().
After changing DayPilot.Row.data, which holds the source data object, call rows.update() to apply the changes.
Example
const row = dp.rows.find("A");
row.data.name = "Room A1";
dp.rows.update(row);Replacing Resource Data
You can also pass a resource data object with the existing row’s id. This replaces that resource’s data; include the fields you want to retain. Since version 2026.4.7082, replacement data is retained across a refresh and subsequent row lookups return the updated data.
const row = dp.rows.find("A");
dp.rows.update({...row.data, name: "Room A1"});See Also
DayPilot.Scheduler.rows.find()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot