Edit multiple models in one UI

2 posts, 0 answers
  1. Matthew
    Matthew avatar
    1 posts
    Member since:
    Oct 2013

    Posted 24 Jun 2015 Link to this post

    I've searched around but haven't found a concise example for this yet.

    I have an object graph with nested data such as coming from Entity Framework
        Multiple Children
              Multiple Children

    I need to provide the user a way to modify/create the parent as well as the children in as simple a way as possible in a single UI. How can I accomplish this using Kendo MVC with MS MVC 5? If possible I'd rather not manually create a ViewModel and have to do translation between the object graph and the ViewModel. If that's the only solution then I guess that's what I have to do but I was hoping to be able to use the EF model directly. Any suggestions are greatly appreciated.

  2. Dimo
    Dimo avatar
    8406 posts

    Posted 26 Jun 2015 Link to this post

    Hi Matthew,

    All editing features and interfaces, which Kendo UI provides out-of-the-box, work with "linear" data items, no matter if editing on multiple items is performed separately or simultaneously.

    Even if you have Grid hierarchy, editing in the master and child Grids is independent.

    In short, yes, you will probably need a ViewModel. There is one exception - if you use a popup edit template for the Grid, you will be able to display the "parent" data in the Grid, and edit both "parent" and "children" data in the popup edit template.


    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top