Is it possible to add a custom template in Blazor Gantt Chart

Answer:

Yes, it is possible to customize the columns using the template like in Grid. Please find the below code example.

<SfGanttDataSource="@TaskCollection"> 

    <GanttColumns> 

        <GanttColumnField="@nameof(TaskData.TaskName)"AllowSorting> 

            <Template> 

                <div> 

                    @((context as TaskData).TaskName) 

                </div> 

            </Template> 

 

        </GanttColumn> 

    </GanttColumns> 

</SfGantt> 



Find the sample to add a custom template in Blazor Gantt Chart from here.

Loader.
Up arrow icon