How can I delete and update a dependency in Gantt?... What actions should I take?.. i don't see buttons (for delete) or forms (for edit)
Also... this is correct for the Gantt's functionality?
<div id="URLEliminarDependencia" data-request-url="@Url.Action("EliminarDependencia", "EventoProgramadoes", new { IdCronograma = ViewData["IdCronograma"] })"></div>
var dependenciesDataSource = new kendo.data.GanttDependencyDataSource({
transport: {
read: {
url: $('#URLObtenerDependencias').data('request-url'),
dataType: "jsonp"
},
update: {
url: $('#URLActualizarDependencia').data('request-url'),
dataType: "jsonp"
},
destroy: {
url: $('#URLEliminarDependencia').data('request-url'),
dataType: "jsonp"
},
create: {
url: $('#URLCrearDependencia').data('request-url'),
dataType: "jsonp"
},
parameterMap: function (options, operation) {
if (operation !== "read") {
return { models: kendo.stringify(options.models || [options]) };
}
}
},
Controller:
public JsonResult EliminarDependencia(int IdCronograma)
{
var models = this.DeserializeObject<IEnumerable<GanttDependencyModel>>("models").ToList();
---more code---
return this.Jsonp(models);
}