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"});

Resource Trees

Use this method to update a nested resource's ordinary data, such as its name, while retaining its ID and children. To change the hierarchy itself, update the complete resources array using scheduler.update({resources}). Use the row's expand/collapse methods to change its visible expansion state.

Tree-aware nested updates are supported in Lite from version 2026.4.899 and in Pro.

See Also

DayPilot.Scheduler.rows.find()

DayPilot.Row Class

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

ProductLitePro
DayPilot for JavaScript