Hi Akira,
Greetings from Syncfusion.
Thanks for your query regarding pinning a specific row, such as the one with Task ID 1, at the top of the Gantt chart during sorting. Based on the current behavior of the Gantt chart, it is not possible to pin a particular row at the top while sorting.
This limitation exists due to the hierarchical tree structure used in the Gantt chart:
- Hierarchy preservation: If a child row is pinned, its parent row must also be displayed to maintain the correct visual and relational structure. If the parent has other children, they will also be shown, which brings in additional rows that are not intended to be pinned. This breaks the expected sorting behavior.
- Indentation and structure: Even when trying to isolate and pin a single row, it leads to indentation mismatches. The TreeGrid requires each child to be rendered within a valid parent record. Without this, the layout becomes inconsistent and visually incorrect.
Hence, due to these structural constraints, pinning a specific row independently is not supported in the current Gantt chart implementation.
Regards,
Sridharan