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

MVVM Model with Child array object

1 Answer 165 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Lance
Top achievements
Rank 1
Lance asked on 22 May 2014, 05:42 AM
Hi,

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.

Thanks

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 26 May 2014, 08:08 AM
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?

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