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

Bind columns to child properties

0 Answers 145 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 19 Jul 2013, 04:37 PM
I have a grid which I need to bind some columns to JSON child properties
$("#grid").kendoGrid({
  dataSource: {
    data: [
      { time: "1:00", city: "Chicago", temperature: { value: 89, displayString: "89 F" } }
    ]
  },
  columns: [
    { field: "time", title: "Time" },
    { field: "city", title: "City" },
       { field: "temperature.displayString", title: "Temperature" }  ]
});
The syntax is valid - I just need to watch for typing errors. 

Thanks!


No answers yet. Maybe you can help?

Tags
Grid
Asked by
Robert
Top achievements
Rank 1
Share this question
or