Hello, Kendo Team
I'm studying Kendo UI Mobile data binding features and has a problem,when define a parse function for kendo.data.Model in "fields" section,the function has not triggered when create a new instance of the Model.
In above code,the parse function is not triggered when create a new Person.
My question is:
How about he parse function works, any advices for parse function usage?
I'm studying Kendo UI Mobile data binding features and has a problem,when define a parse function for kendo.data.Model in "fields" section,the function has not triggered when create a new instance of the Model.
var Person = kendo.data.Model.define({
fields: {
name: {
editable: true,
from:"name",
parse:function(v){
console.log('parse name..., v=' + v);
return v;
}
},
age:{
type:"number"
}
}
});
var person = new Person( {
name: "John Doe",
age: 42
});
My question is:
How about he parse function works, any advices for parse function usage?