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

Binding broken after update to 2014.2.716

4 Answers 124 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
BeOne Stuttgart
Top achievements
Rank 1
BeOne Stuttgart asked on 05 Aug 2014, 11:23 AM
After updating our version of KendoUI from 2014.1.416 to 2014.2.716 we have a problem with MVVM and touch events. I created a small demo to show you the problem.

=> http://jsbin.com/runoha/39

If you run the example it shows "WORKING" as bound title. After changing the KendoUI version to 2014.2.716 the binding is broken. If you uncomment the line within the initView function it´s working again.

4 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 05 Aug 2014, 01:05 PM
Hello,

the approach you describe has worked by accident - the mobile navbar performs some calculations in order to show and hide itself based on the title. The recommended and supported way to set title is through the respective method - please check this updated version of your example.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
BeOne Stuttgart
Top achievements
Rank 1
answered on 06 Aug 2014, 05:01 AM
The problem is not, that the navbar is not showing. The main problem is the broken data binding. The example was a very small one. I our application we also have a listview populated with data from a WebAPI and other data bound to multiple controls. Every data binding on the view is broken. It´s not only the title! I updated my sample with two buttons within the navbar having there click event bound to the viewmodel.

http://jsbin.com/runoha/54/

Works perfect with the old version, but not with the new one.
0
Kiril Nikolov
Telerik team
answered on 07 Aug 2014, 12:39 PM
Hello,

Thank you for the clarification. With the Q2 release, we introduced support for binding the view events to the view model. This, however has broken your approach where you instantiate a secondary widget on top of the view (due to two widgets and an MVVM bound to the single element).  

One way to work around this problem is to move the touch widget to an inner event or to use the listview widget click event. Your scenario would be completely covered by the listview widget click event, eliminating the additional kendoTouch initialization. 

Another approach (which is a bit accidental) would be to modify the initialization of the view like this. However, I would recommend the former. 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
BeOne Stuttgart
Top achievements
Rank 1
answered on 19 Aug 2014, 11:44 AM
We used kendoTouch to simulate a swipe to delete. But now we skipped this feature and used the standard click event to open the details.
Tags
MVVM
Asked by
BeOne Stuttgart
Top achievements
Rank 1
Answers by
Petyo
Telerik team
BeOne Stuttgart
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or