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()
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.
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.
We hope this solution has answered your query, please feel free to contact us if you have further query regarding this issue
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
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.
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());
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.