Edit segments tab in context menu

My context menu has the Segments tab, which I guess is because I enabled the split task feature. Is it possible to edit the table inside the Segments tab, so that I can have some custom segment columns? If not, is it possible to remove the Segments tab, but still use the split task feature?


1 Reply

AG Ajithkumar Gopalakrishnan Syncfusion Team September 9, 2024 12:37 PM UTC

Hi Desmond,

Greetings from Syncfusion Support,

By default, custom columns couldn’t be included in the segment tab; only default columns are rendered in the segment tab. To achieve your requirement through workaround(To remove Segment Tab), we suggest using the GanttEditDialogFields property in the Gantt chart. This property allows you to render only the necessary tabs in the dialog when editing or adding tasks. We have attached a code snippet and sample for reference.

<SfGantt TValue="TaskData" EnableContextMenu="true">

   

   <GanttAddDialogFields>

        <GanttAddDialogField Type="GanttDialogFieldType.General"></GanttAddDialogField>

         <GanttAddDialogField Type="GanttDialogFieldType.Dependency"></GanttAddDialogField>

    </GanttAddDialogFields>

     <GanttEditDialogFields>

         <GanttEditDialogField Type="GanttDialogFieldType.General"></GanttEditDialogField>

         <GanttEditDialogField Type="GanttDialogFieldType.Dependency"></GanttEditDialogField>

     </GanttEditDialogFields>

</SfGantt>


Sample: https://blazorplayground.syncfusion.com/embed/LDBpNaDELaGZeYZa?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5



For more information, you may refer to the following link:

https://blazor.syncfusion.com/documentation/gantt-chart/editing-tasks#limiting-data-fields-in-general-tab

If you have any further questions or need additional assistance, please let me know!

Regards,
Ajithkumar G


Loader.
Up arrow icon