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

Using odata with hierarchical data

1 Answer 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Boomerang
Top achievements
Rank 1
Boomerang asked on 21 Aug 2015, 08:28 AM

I´m trying to implement a paging mechanism like this:

http://demos.telerik.com/kendo-ui/grid/virtualization-remote-data

using json data that has a hierarchical structure like this:

{
   "issue_list":[
      {
         "issue":{
            "href":"issue/1",
            "subject":"some text",
            "body":"some more text"
         }
      },
      {
         "issue":{
            "href":"issue/2",
            "subject":"some other text",
            "body":"some more other text"
         }
      }
   ]
}

 

Is this possible to do if I specify the structure in the schema in some way? 

This post: 

http://stackoverflow.com/questions/14731949/what-must-my-kendo-datasource-schema-look-like

implies that the data structure can not be hierarchical? Is this still true?

 ​

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 25 Aug 2015, 07:26 AM

Hello Karin,

 

If you want to point the dataSource to the object that is holding the data that you want to display you need to use the schema.data configuration property. It is documented here:

 

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-schema.data

 

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Boomerang
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or