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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disallow setting task ID on creation

Thread ID:

Created:

Updated:

Platform:

Replies:

129265 Mar 8,2017 09:54 AM UTC Mar 9,2017 05:00 PM UTC JavaScript 1
loading
Tags: ejGantt
Tomasz Bednarek
Asked On March 8, 2017 09:54 AM UTC

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

Jayakumar Duraisamy [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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

;