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

Bind to local data

1 Answer 150 Views
Hierarchical Data Source
This is a migrated thread and some comments may be shown as answers.
axel
Top achievements
Rank 1
axel asked on 02 Oct 2014, 12:15 PM
Hello, 

could you please provide an example how to bind a mobile listview to a hierarchical datasource bound to local json data?
When I try to load child nodes, I get a type error that undefined is not a function.

var node = dataSource.at(0);
node.load(); 

Is it possible to slide the listview content instead of the entire view, when I don't want to use a splitview?

Kind regards
Axel

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 06 Oct 2014, 08:36 AM
Hello Axel,

Here is a Dojo example that shows this. It is running in fullscreen so that the back button functions; click the "edit this example" button to go to the source. If you want only the listView content to change, you can remove the navBar-related code and use setDataSource(employees) to return to the root level.

Regards,
Alex Gyoshev
Telerik
 
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
axel
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or