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

HierarchicalDataSource CRUD example

4 Answers 381 Views
Hierarchical Data Source
This is a migrated thread and some comments may be shown as answers.
Bojan
Top achievements
Rank 1
Bojan asked on 15 Jul 2012, 09:18 PM
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

4 Answers, 1 is accepted

Sort by
0
Brad
Top achievements
Rank 1
answered on 27 Aug 2012, 12:42 PM
I also am interested in this...
0
Alex Gyoshev
Telerik team
answered on 27 Aug 2012, 01:31 PM
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!
0
Tracy
Top achievements
Rank 1
answered on 28 Aug 2012, 12:33 AM
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
0
Alex Gyoshev
Telerik team
answered on 30 Aug 2012, 07:41 AM
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!
Tags
Hierarchical Data Source
Asked by
Bojan
Top achievements
Rank 1
Answers by
Brad
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Tracy
Top achievements
Rank 1
Share this question
or