This question is locked. New answers and comments are not allowed.
Hi All,
I am using Telerik RadGridView for displaying hierarchical data using MVVM model, for eg: Order and OrderDetail. I have got lots of sample code from this website and somehow I succeed in displaying the same.
I can insert new row to parent as well as child grid, but the newly inserted row of child row is not updating the corresponding binding object, even if I put it as TwoWay mode.
The structure of binding object is:
1. Order {List<OrderDetail>, OrderId, OrderDate, etc}
2. OrderDetail {OrderDetailId, OrderId, etc, }
The itemsource of parent GridView is of type List<Order>, and Itemsource of child Gridview is of type List<OrderDetail>. The binding object has both get, and set property.
Can I get some sample project, where in, it uses Hierarchical RadGridView with functionality as below?
- insert a new row in child grid and updating the same in binding object of parent grid
- amend existing row in child grid and updating the same in binding object of parent grid
- insert a new row in parent grid (This is working at my end)
- amend a new row in parent grid (This is working at my end)
I am struggling with this from last two days. I would like to thanks in advance.
Regards,
Meehir Jha
I am using Telerik RadGridView for displaying hierarchical data using MVVM model, for eg: Order and OrderDetail. I have got lots of sample code from this website and somehow I succeed in displaying the same.
I can insert new row to parent as well as child grid, but the newly inserted row of child row is not updating the corresponding binding object, even if I put it as TwoWay mode.
The structure of binding object is:
1. Order {List<OrderDetail>, OrderId, OrderDate, etc}
2. OrderDetail {OrderDetailId, OrderId, etc, }
The itemsource of parent GridView is of type List<Order>, and Itemsource of child Gridview is of type List<OrderDetail>. The binding object has both get, and set property.
Can I get some sample project, where in, it uses Hierarchical RadGridView with functionality as below?
- insert a new row in child grid and updating the same in binding object of parent grid
- amend existing row in child grid and updating the same in binding object of parent grid
- insert a new row in parent grid (This is working at my end)
- amend a new row in parent grid (This is working at my end)
I am struggling with this from last two days. I would like to thanks in advance.
Regards,
Meehir Jha