Need More Info
Last Updated: 08 Feb 2022 07:23 by ADMIN
Jack
Created on: 11 Nov 2014 17:17
Category: MVVM
Type: Feature Request
23
Allow complex/nested fields in kendo.data.Model (especially for MongoDB and other JSON DBs)
We need to be able to define models with complex/nested fields

```
var Book = kendo.Data.Model.define({
    id: 'id',
    field: {
        id: { type: 'string'},
        title: { type: 'string'},
        author: {
            firstName: { type: 'string'},
            lastName: { type: 'string'},        
        }
    }
});

We would also benefit of fields of type kendo.data.Model and [kendo.data.Model] (arrays of items derived from kendo.data.Model) like mongoose Documents, SubDocuments and Arrays of SubDocuments. 

DataSources are simply arrays of such models and do not need to be flat tables.

Grids should not be an issue: they could ignore all complex fields and arrays and rely on calculated fields at the root to flatten the Model.
2 comments
ADMIN
Maria Veledinova
Posted on: 08 Feb 2022 07:23

Hey Folks,

We would like to validate the potential of this item for our 2022 product planning. We will appreciate your comments and input on the item in the coming month. Without additional input from your side, we are not able to analyze and consider it for the backlog.

Your feedback is highly appreciated and looking forward to it.

Kind Regards, Maria veledinova Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Angel Petrov
Posted on: 08 Jul 2021 19:50

Hi,

There is already support for nested fields for some cases. However in order to approve this feature we would need a specific use case so we could validate it. If you can share such with us that would be great. 

Bear in mind that аs a solution that should always work one can flatten the model.

Regards,
Angel Petrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.