Hi. I'm troubling with updating data for grid.
I'm using angularjs with kendo.
This is my code...
var gridoption = {
dataSource :{
transport :{
read : {
url : "grid/ajax/file1",
dataType :'json",
},
update : function(e){
console.log("I'm calling update!!");
}
}
}
};
Grid called method 'read' properly, but when I edited the row, clicked the "update" button ,nothing happend.
So I changed my code like this.
var gridoption = {
dataSource :{
transport :{
read : function(e){
$http({
url : "grid/ajax/file1"
}).success(data){
e.success(data);
});
},
update : function(e){
console.log("I'm calling update!!");
}
}
}
};
Then I can load my data from "read" method and update the changed data properly.
Can't I use both 'read : function(e){}' and 'read : { url :...}' in one trasport option?
I'm using angularjs with kendo.
This is my code...
var gridoption = {
dataSource :{
transport :{
read : {
url : "grid/ajax/file1",
dataType :'json",
},
update : function(e){
console.log("I'm calling update!!");
}
}
}
};
Grid called method 'read' properly, but when I edited the row, clicked the "update" button ,nothing happend.
So I changed my code like this.
var gridoption = {
dataSource :{
transport :{
read : function(e){
$http({
url : "grid/ajax/file1"
}).success(data){
e.success(data);
});
},
update : function(e){
console.log("I'm calling update!!");
}
}
}
};
Then I can load my data from "read" method and update the changed data properly.
Can't I use both 'read : function(e){}' and 'read : { url :...}' in one trasport option?