This is a migrated thread and some comments may be shown as answers.

Support a nested scenario?

3 Answers 115 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 03 May 2012, 08:35 PM
Does kendo MVVM support this type of scenario?

http://jsfiddle.net/stevescotthome/sqbXP/3/

Where the "Add new" and "Edit" are popup windows to edit\add sites.

I have this working in knockout, but I like the kendo datasource implementation a bit better than having to use a separate mapping plugin.

Like I don't see any $root. or $parent style binding samples to let me link an element to a viewmodel calculated function

(Also, it supports this type of stuff right?)
viewModel.selectedSite = ko.observable();
viewModel.editItem = function (item) {
        viewModel.selectedSite(item);
};

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 08 May 2012, 07:46 AM
Hello,

 Kendo MVVM does not support $root and $parent in the template binding. Right now it will check the current item and the root view model when binding events. This is demonstrated here: http://demos.kendoui.com/web/mvvm/source.html 

 In the next official release (the service pack) all parents of the current item (the context of the template) will be checked when resolving the event handler.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 08 May 2012, 01:48 PM
Any idea of an ETA on the SP?...we talking within the month, week? :)
0
Atanas Korchev
Telerik team
answered on 08 May 2012, 01:53 PM
Hi,

 The service pack is expected by the end of this month.

All the best,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
MVVM
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Atanas Korchev
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or