Nested arrays in view model not updating UI

4 posts, 0 answers
  1. Will
    Will avatar
    1 posts
    Member since:
    Oct 2013

    Posted 14 Nov 2013 Link to this post

    Hi,

    I'm trying to add a new object to a child array, which is contained within another array.

    I've created a jsbin to show you exactly what I mean - are you able to help me get the newly pushed child object to display?

    I would expect the text "why wont this appear after updating my view model?" to show upon it being pushed into the array but it doesn't render.

    http://jsbin.com/enutew/23/edit?html,console,output

    Thanks

    Will
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 15 Nov 2013 Link to this post

    Hello Will,

    I replied to your support ticket with the same subject. For your convenience, I am providing the answer here, too.I re-wrote your implementation to follow the class based inheritance pattern which is needed for the MVVM to work as expected - please check this updated 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. Alan
    Alan avatar
    1 posts
    Member since:
    Sep 2015

    Posted 23 Sep 2015 Link to this post

    Where is the documentation for kendo.data.ObservableObject.extend()?  In what situations should an extend() be used instead of a normal ObservableObject?  Thank you.
  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 25 Sep 2015 Link to this post

    Hello Alan,

     

    the extend method comes from the base kendo.Class. You don't have to use it, in general - the example I gave was created for the particular inquiry. 

     

    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready