Kendoui Datasource & Json Issue

2 posts, 0 answers
  1. tundecanhelp
    tundecanhelp avatar
    10 posts
    Member since:
    Jul 2013

    Posted 26 Aug 2013 Link to this post

    I am trying to use kendoui datasource to pull list of post into a listview with Hierarchical data binding from a Wordpress site using json. Please point me to the right direction in doing this, i have tried using kendoui datasource but no luck on this.

    Below is  the code  i am  working with so far.

    01.var dataSource = new{
    02.  transport: {
    03.    read: {
    05.      contentType: "application/json; charset=utf-8",
    06.      dataType: "jsonp", // "jsonp" is required for cross-domain requests; use "json" for same-domain requests
    07.    }
    08.  },
    09. schema: {
    10.    data: function(response) {
    11.      return response.posts; // twitter's response is { "results": [ /* results */ ] }
    12.    }}
    15.  var data =;
    16.  console.log(data.length);
    17.  console.log(data[0].title);
    18.  dataSource.sync();

  2. Steve
    Steve avatar
    10941 posts

    Posted 27 Aug 2013 Link to this post


    Representation of hierarchical data in Kendo UI can be accomplished via the HierarchicalDataSource component which extends the DataSource component. Be aware that at this time, the only widget that is aware of the datasource hierarchy is the TreeView. However, since the HierarchicalDataSource inherits the DataSource component, you can share the root level of the hierarchy with any DataSource-enabled component.


    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top