We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to define data fields in Gantt dialog

Platform: jQuery |
Control: ejGantt

It is possible to make the specific data fields alone visible in Gantt editing dialog by using editDialogFields property. We should provide the data source fields which are to be displayed in the dialog using editDialogFields.field property.

The below code snippet explains how to define the edit dialog fields by rendering the dialog with duration, task name and start date fields alone.

$(function () { 
dataSource: data,  
durationMapping: "Duration",
taskNameMapping: "TaskName",
startDateMapping: "StartDate",
editDialogFields: [{ field: "Duration", editType: "numericedit", },
{ field: "TaskName", editType: "stringedit"  },
{ field:"StartDate", editType: "datepicker"  }],       

The below screenshot depicts the above explained scenario

Edit dialog with task name, start date and duration fields.

You can also find a sample on how to define the edit dialog fields in Gantt here.



You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile