Hi, we are using the "btoa" method to generate field name in some of our objects.
We have no problems with these attributes until we make them "observable".
The "btoa" algorithm can return some special characters, "+", "=" and "/".
Even if it looks strange, that is valid javascript / JSON property names.
Javascript can handle this.
And observable too, until we use getters / setters.
Take a look at this dojo with a sample that explains everything.
var obj = new kendo.data.observableObject({});
var field = "field/";
obj[field] = "test"; // works
obj.set(field, "test"); // crash
value = obj[field]; // works
value = obj.get(field); // crash
Thank you
We have no problems with these attributes until we make them "observable".
The "btoa" algorithm can return some special characters, "+", "=" and "/".
Even if it looks strange, that is valid javascript / JSON property names.
Javascript can handle this.
And observable too, until we use getters / setters.
Take a look at this dojo with a sample that explains everything.
var obj = new kendo.data.observableObject({});
var field = "field/";
obj[field] = "test"; // works
obj.set(field, "test"); // crash
value = obj[field]; // works
value = obj.get(field); // crash
Thank you