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

How to stop binding for part of the View

1 Answer 13 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 17 Jul 2015, 02:34 PM

Our Views are composed from dynamic components, each having own "View" and ViewModel. They are built independently and can have identical names of bound properties in a Model. As far as I see, when applying binding between View and ViewModel, Kendo UI will travers entire DOM tree. This will apply wrong values to components that do not belong to the "View" in question, but have the same name of bound properties. With Knockout I can use "controlsDescendantBindings" instruction to stop binding from drilling down on a DOM subtree - does Kendo UI have any way to do the same?

Thanks,

Sam

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Alexander Popov
Telerik team
answered on 21 Jul 2015, 10:39 AM
Hello Sam,

I am afraid the Kendo UI MVVM binding does not provide a mean to control which parts of the View to be bound. My advice is to split the application into multiple Views, each in separate container and bind them to their respective ViewModel.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
General Discussions
Asked by
Sam
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or