Hi,
The kendo.data.Model editable function returns true if a field is not defined. Shouldn't it return false for undefined fields?
<!DOCTYPE html>
<
html
>
<
head
>
<
meta
charset
=
"utf-8"
>
<
title
>Kendo UI Snippet</
title
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2015.2.624/styles/kendo.common.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2015.2.624/styles/kendo.rtl.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2015.2.624/styles/kendo.default.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2015.2.624/styles/kendo.dataviz.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2015.2.624/styles/kendo.dataviz.default.min.css"
>
<
link
rel
=
"stylesheet"
href
=
"http://cdn.kendostatic.com/2015.2.624/styles/kendo.mobile.all.min.css"
>
<
script
src
=
"http://code.jquery.com/jquery-1.9.1.min.js"
></
script
>
<
script
src
=
"http://cdn.kendostatic.com/2015.2.624/js/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
script
>
var Product = kendo.data.Model.define({
fields: {
id: {
editable: false
},
name: {
editable: true
}
}
});
var product = new Product();
alert(product.editable("id")); // outputs "false"
alert(product.editable("name")); // outputs "true"
alert(product.editable("name2")); // outputs "true", why???
</
script
>
</
body
>
</
html
>
Regards,
Laszlo