BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
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
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
https://ej2.syncfusion.com/aspnetmvc/documentation/gantt/data-binding#remote-save-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
Regards,
Udhayakumar
thanks now i can do Insert and Edit
but how about Delete ?
i mean how to open delete pop up or button for delete action
Muqofa,
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: /*HomeController.cs*/ 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()); RemoveChildRecords(batchmodel.Deleted[i].taskId); } } |
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.
Regards,
Udhayakumar