jaydata icon indicating copy to clipboard operation
jaydata copied to clipboard

knockout asKoObservable ignores complex type properties and array properties.

Open oising opened this issue 12 years ago • 5 comments

If I have an entity with a simple complex type property, changes to the complex type's properties are not registered as changes to the entity. The same goes for a property array of complex types (which is an odata v3 feature). Simple complex type property change detection should work because this is not odata v3.

oising avatar Jan 04 '13 22:01 oising

I am on it, and the fix is almost done. Are you initiate saving with the default kendo datasource.sync way (that actually called by the user controls)?

PeterAronZentai avatar Jan 07 '13 13:01 PeterAronZentai

Kendo? I think you replied to the wrong issue, Peter :)

oising avatar Jan 07 '13 13:01 oising

It would be very cool if array properties was ko.observableArray!

AresEkb avatar Feb 01 '13 03:02 AresEkb

I have also noted that the asKoObservable only maps one level down from the root object. i.e. objroot.cmplxobj is fine and objroot.cmplxobj.anothercmplx, anothercmplx is not observable or anything else further down the object graph.

Thanks for all of your hard work!

jpirok avatar Feb 05 '13 23:02 jpirok

I just posted a question about deep observables on the JayData forum and have just found this issue where jpirok is asking about the same thing. I feel this is a really useful feature! Hoping that it happens soon. :)

ghost avatar Aug 10 '13 13:08 ghost