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

Disallow setting task ID on creation

Hi Syncfusion,

Is there a way not to allow the user to set the task ID on task creation?

Hiding the ID in the add/edit forms would be a solution.

Kind Regards,
Tomasz Bednarek

1 Reply

JD Jayakumar Duraisamy Syncfusion Team March 9, 2017 05:00 PM UTC

Hi Tomasz, 
Thanks for contacting Syncfusion support. 
We can customize the fields in the add/edit dialog by using “addDialogFields” and  “editDialogFields” API’s, we can add require fields in this properties. 
Please refer code snippet for this. 
$("#GanttContainer").ejGantt({ 
         addDialogFields: [{ field: "TaskName", editType: "stringedit" }, 
                                  { field: "StartDate", editType: "datepicker" }, 
                                  { field: "EndDate", editType: "datepicker" }, 
                                  { field: "Progress", editType: "numeric" }, 
                                  { field: "Predecessors", editType: "stringedit" }, 
                ], 
         editDialogFields: [{ field: "TaskName", editType: "stringedit" }, 
                                 { field: "StartDate", editType: "datepicker" }, 
                                 { field: "EndDate", editType: "datepicker" }, 
                                 { field: "Progress", editType: "numeric" }, 
                                 { field: "Predecessors", editType: "stringedit" }, 
                ], 
}); 
 
We have prepared a sample and removed the  task id field in add/edit dialogs, please find the sample in below link. 
Regards, 
Jayakumar D 


Loader.
Live Chat Icon For mobile
Up arrow icon