I´m working with Kendo Ui Gantt AngularJS
How to execute the update function and get, again, I need it for a custom function
I need something like that
update ();
get ();
$scope.onClick1 =
function
() {
var
gantt = $(
"div [kendo-gantt]"
).data(
"kendoGantt"
);
if
(gantt) {
gantt.refresh();
}
};
$scope.onClick1 =
function
() {
var
gantt = $(
"div [kendo-gantt]"
).data(
"kendoGantt"
);
if
(gantt) {
var
task = gantt.dataSource.at(0);
gantt.dataSource.update(task, { title:
"New Title"
});
gantt.dataSource.sync();
}
};