jaydata icon indicating copy to clipboard operation
jaydata copied to clipboard

Kendo UI Grid with Nested properties

Open Morhpeuss opened this issue 10 years ago • 0 comments

Hi,

I have a problem to show nested properties in Kendo grid.

Example: I "Object 1" with the " Name" and " Object 2" real estate " Price " . Among the objects is the relationship ( m : n ) . I want to see all the " Object 2" with the relation with " Object 1 " and from " Object 2" I want to see the property " Price " .

The solution is here : http://docs.telerik.com/kendo-ui/web/grid/how-to/use-nested-model-properties

Problem is, that method "asKendoDataSource" creates only flat datasource, without related entities (they are only object).

Important solution Code:

model: { id: "id", fields: { id: { type: "int" }, fname: { from: "person.fname" }, lname: { from: "person.lname" }, bdate: { type: "date", from: "person.bdate" } } }

Morhpeuss avatar Jun 10 '15 11:06 Morhpeuss