HierarchicalDataSource CRUD example

5 posts, 0 answers
  1. Bojan
    Bojan avatar
    6 posts
    Member since:
    Jan 2012

    Posted 15 Jul 2012 Link to this post

    Dear Sirs,

    Is there possibility that we get example of CRUD GRID with HierarchicalDataSource, or it can be used only for data reading?

    model sample is this:

    Student{
      id,
      name,
      TookExams{
        id,
        name
      }
    }

    Can we update this in one grid via single DataSource?

    Regards,
    Bojan
  2. Brad
    Brad avatar
    1 posts
    Member since:
    Dec 2009

    Posted 27 Aug 2012 Link to this post

    I also am interested in this...
  3. Kendo UI is VS 2017 Ready
  4. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 27 Aug 2012 Link to this post

    Hello all,

    The grid does not support binding to the HierarchicalDataSource out of the box -- only the TreeView does, and it uses it in a read-only fashion.

    All the best,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Tracy
    Tracy avatar
    1 posts
    Member since:
    Jul 2012

    Posted 27 Aug 2012 Link to this post

    Hi,

    What kind of backend/response does the TreeView with remote binding to HierarchicalDataSource expect? The example given makes requests to /Employees using JSONP, but otherwise the documentation doesn't really specify what the datasource expects or how it populates and renders the treeview. Can my backend return JSON and I specify dataType: 'json' in transport.read?

    Thanks,
    Tracy
  6. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 30 Aug 2012 Link to this post

    Hello Tracy,

    The documentation of the HierarchicalDataSource states exact server responses in JSON format.

    Greetings,
    Alex Gyoshev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready