MVVM Model with Child array object

2 posts, 0 answers
  1. Lance
    Lance avatar
    25 posts
    Member since:
    Apr 2013

    Posted 22 May 2014 Link to this post


    I want to use MVVM and bind the page widgets to an object.  This object has child objects.  Something like a Customer Order object which has a property of Customer Order Lines which is an IEnumerator of Customer Line Objects.  So the widgets on the page are bound to the Customer Order object and the grid widget is bound to the Customer Order Lines property of the Customer Order Object. I am having trouble creating the Kendo.Model to represent this.  Is this possible and if so could you please help or point me in the direction of an example.

    I was hoping to create a page based on the above where a user could create a Customer Order and Customer Order Lines or edit an existing one.

    Please help.

  2. Vladimir Iliev
    Vladimir Iliev avatar
    2190 posts

    Posted 26 May 2014 Link to this post

    Hi Lance,

    I'm not sure that I understand correctly what exactly you are trying to achieve, however I created small demo of ViewModel with complex property "productDetails" which contains both grid data and dateTimePicker data in two different nested fields. Could you please check the example below and let us know if this is the functionality that you are looking for?

    Vladimir Iliev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top