I want to add a checkbox to the gantt chart dialog box, which I can read in the controller to check the user ticks it or not when updating, inserting or deleting a record in the dialog box. So far everything is in the default setting, and I used the e-data-manager and the controller behind to bind the data to my database:
<e-data-managerurl="/SyncfusionGantt/Url"adaptor="UrlAdaptor"batchUrl="SyncfusionGantt/BatchUrl">e-data-manager>
The BatchUrl in the controller is:
public class CRUD where T : class
{
public List AddedObject { get; set; }
public List ChangedObject { get; set; }
public List DeletedObject { get; set; }
public object key { get; set; }
public string action { get; set; }
public T Value { get; set; }
}
public IActionResult BatchUrl([FromBody] CRUD batchmodel)
{
//how can i get the checkbox value here? I need it because it decides how I upload the data to the database
if (batchmodel.ChangedObject != null)
{
//update to database
}
...
}