Sequencing tasks in EJ 1 ASP.NET MVC Gantt
22 Mar 2018 / 1 minute to read
How to enable serial number column in Gantt?
The serial or sequence number support in Gantt is used to index the tasks in a project. The Serial number column can be rendered by enabling the
EnableSerialNumber property. On enabling this property the serial number column will be displayed and the Task Id column will be hidden, the tasks will be identified using the serial numbers. Further the column values for task predecessors will also be displayed using the serial numbers of the corresponding tasks, instead of task IDs.
Code snippets for enabling the serial number is as follows.
@(Html.EJ().Gantt("GanttSerialNumber") //... .EnableSerialNumber(true) ) @(Html.EJ().ScriptManager())
The following screenshot displays the Serial number column in Gantt control.
The serial number column will be resequenced automatically on performing any actions which will change the row indexes of the tasks such as row drag and drop, deleting, adding.