Hello,
My understanding is change event is fired on success of a service request. I have tried below code but no luck. The error event fires as expected.
Thanks for your time and help.
function login() {
var username = $("#username").val();
var password = $("#password").val();
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost:8080/NavXzy/rest/SecurityService",
type: "POST",
dataType: "json",
data: { username: username, password : password }
}
},
change: function (e) {
console.log(e);
},
error: function(e) {
console.log("error");
e.preventDefault();
app.navigate("kendoUI.html");
}
});
dataSource.read();
}
My understanding is change event is fired on success of a service request. I have tried below code but no luck. The error event fires as expected.
Thanks for your time and help.
function login() {
var username = $("#username").val();
var password = $("#password").val();
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: "http://localhost:8080/NavXzy/rest/SecurityService",
type: "POST",
dataType: "json",
data: { username: username, password : password }
}
},
change: function (e) {
console.log(e);
},
error: function(e) {
console.log("error");
e.preventDefault();
app.navigate("kendoUI.html");
}
});
dataSource.read();
}