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

Populating tree view with remote Restful api json

1 Answer 272 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 27 Mar 2014, 04:20 PM
Hi,
We have angularjs - kendo ui based solution. In the template kendo tree is defined with k-options param set to angular controller variable.
Please see attached :
1. bulletinBoard.tpl.html - template where kendo tree is defined
2. bulletinBoard.js - controller

Inside controller we have defined factory for communication with web api in order to retrieve asynchronously json response.

In the LogConsole.png, I have pasted just for the reference that valid json is returned and unwrapped in the controller by calling .then(function(data)... call.

However tree is not populated with the fetched data.
Please advice what are we doing wrong?

We are new to Angular, Kendo and spent many hours trying to resolve this issue.

Thanks in advance,
Sincerely
Ivan


1 Answer, 1 is accepted

Sort by
0
Ivan
Top achievements
Rank 1
answered on 28 Mar 2014, 02:36 PM
Answer to my previous question:
http://www.telerik.com/forums/angular-treeview-refresh-problems
solved this problem also.
Tags
TreeView
Asked by
Ivan
Top achievements
Rank 1
Answers by
Ivan
Top achievements
Rank 1
Share this question
or