The rows.find() method returns the JavaScript Scheduler row that matches the specified id or search function.
Declaration
Search using a row id:
DayPilot.Scheduler.rows.find(id[, start])Search using a function (since version 2019.4.4153):
DayPilot.Scheduler.rows.find(f[, startIndex])Parameters
id(string | number) - resource idstart(string) - row start date when viewType is set to"Days", in ISO format such as"2020-01-31T00:00:00"f(function) - find function that returnstrueif the criteria is metstartIndex(number) - row index where the search should start
Find function syntax:
function f(row) {}Find function parameters:
row- DayPilot.Row object
Return Value
Returns a DayPilot.Row object if the row is found; otherwise null.
Resource Trees
The search includes all loaded descendants, including resources hidden by collapsed parents. Finding a row does not reveal it or expand its ancestors. Use the row API to inspect its parent and children or change its expansion state. Nested lookup is supported in Lite from version 2026.4.899 and in Pro.
Example
const row = dp.rows.find("A");See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot