Binding broken after update to 2014.2.716

5 posts, 0 answers
  1. BeOne
    BeOne avatar
    16 posts
    Member since:
    Jul 2014

    Posted 05 Aug 2014 Link to this post

    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.
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 05 Aug 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. BeOne
    BeOne avatar
    16 posts
    Member since:
    Jul 2014

    Posted 06 Aug 2014 Link to this post

    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.
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 07 Aug 2014 Link to this post

    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!
     
  6. BeOne
    BeOne avatar
    16 posts
    Member since:
    Jul 2014

    Posted 19 Aug 2014 in reply to Kiril Nikolov Link to this post

    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.
Back to Top
Kendo UI is VS 2017 Ready