I am trying to use kendoui DataSource together with my knockout viewmodel. It's very nice that I can just configure a kendoui DataSource and assign it to a kendoui grid's datasource.
But the data that is currently being shown in a kendoui grid (after being filtered, sorted and paged) is also important to the rest of my knockout viewmodel. For example there are items in the currently shown grid that are marked selected and it drives some other UI on the same page. Or the current page's items also have representative pictures showing in a different part of the UI. And as a general rule I am using knockout as my viewmodel and only deviating from it when I have to for things like kendoui grid.
How can I keep a knockout observableArray of items that are loaded in the kendoui grid in sync with the grid, including having observable items in the array that correspond to the data properties of the items in the grid. Ie., someone checks of an item in the grid and the corresponding property in the corresponding item in the observableArray changes.
I guess the question is how to keep kendoui's built-in observables in sync with a shadow knockout observable and observableArray.
I specifically want to use this approach in my durandaljs viewmodels.
Thanks