getRowNumber
Description
Returns the row number of a task
getRowNumber: (task: Task) => number
Parameters
task- (required) Task - the task object
Returns
The one-based row number, or 0 for a task without a row number.
Example
const number = gantt.getRowNumber(gantt.getTask(taskId));
Details
Row numbers count each task before its children. Sorting, filtering and collapsing the grid do not change them. Structural edits can renumber tasks. When grouping is active, numbering follows the grouped hierarchy and skips the generated group rows.
This method is available in paid editions.
Related API
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.