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

How to CRUD Gantt Chart Syncfusion ASP.Net MVC

i trying to create gantt chart with CRUD 

but i cant find any way to "INSERT" "EDIT" and "DELETE" just call data from Controller 

wherever i found a way its EJ() not EJS() 

please HELP 

4 Replies 1 reply marked as answer

UA Udhayakumar Anand Syncfusion Team May 4, 2023 02:46 PM UTC

Hi Muqofa,

Thank you for reaching out to us regarding your query about performing CRUD operations in Gantt chart. We understand your concern and are glad to assist you.

To perform CRUD operations on the server side, you can make use of the BatchURL feature in Syncfusion's Gantt chart control. We have attached a sample and user guide link that provides more information about this feature, which we believe will help you achieve your requirement.

UG LINK : https://ej2.syncfusion.com/aspnetmvc/documentation/gantt/data-binding#url-adaptor


If you are using Local Data and need to perform CRUD actions at server end, we suggest to use RemoteSaveAdaptor to the adaptor property of DataManager.

Sample Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/TestSample108057550

We hope this solution has answered your query, please feel free to contact us if you have further query regarding this issue



MS Muqofa Syinagha May 10, 2023 06:57 AM UTC

thanks now i can do Insert and Edit 
but how about Delete ? 

MS Muqofa Syinagha May 10, 2023 07:28 AM UTC

i mean how to open delete pop up or button for delete action

UA Udhayakumar Anand Syncfusion Team May 12, 2023 04:59 AM UTC


We have carefully reviewed your query regarding the delete functionality.

To clarify, when you initiate the deletion of a record, it is processed by the "batchmodel.delete" function. This function is designed to trigger the necessary actions for deleting the record. In order for the delete action to be executed successfully, it is essential to ensure that the "allowDeleting" property is set to true. This setting enables the delete functionality to perform the necessary actions.

To provide you with more comprehensive information and guidance on this matter, we have included a detailed link to our User Guide.

Code Snippet:


if (batchmodel.Deleted != null) // when a record is deleted


                for (var i = 0; i < batchmodel.Deleted.Count(); i++)


                    DataList.Remove(DataList.Where(or => or.taskId == batchmodel.Deleted[i].taskId).FirstOrDefault());




UG LINK : https://ej2.syncfusion.com/aspnetmvc/documentation/gantt/data-binding#remote-save-adaptor

Sample Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/TestSample2051236582

We hope this explanation clarifies any concerns you had regarding the delete functionality. If you have any further questions or need additional assistance, please do not hesitate to reach out.



Marked as answer
Live Chat Icon For mobile
Up arrow icon