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

Undefined TreeListDataSource with AngularJS

2 Answers 84 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Thierry
Top achievements
Rank 1
Thierry asked on 27 Nov 2014, 04:31 PM
Hello,

I have the following issue when trying to use a TreeList in my angular application.
I have the following element in my HTML file (for the tree list):

<kendo-treelist options="treelistOptions" k-rebind="treeListDataTrigger"></kendo-treelist>

And the treelistOptions object looks like this:

$scope.treelistOptions = {            
dataSource: new kendo.data.TreeListDataSource({
data: treeListData,
         
schema: {
                  model: {
                  id: "id",​                
expanded: true
                  }
                }
              }),
             columns: [...]
            };
 
Actually when I'm importing the file kendo.all.js, the above code works fine. But when I'm trying to import only the necessary files (kendo.treelist.js, and kendo.angular.js) I can not instantiate the TreeListDataSource. It says it is undefined.

Am I missing anything ? or how should I proceed to get the treelist working correctly by using only the necessary files and not kendo.all.js?

2 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 28 Nov 2014, 08:41 AM
Hello Dominika,

Adding just kendo.treelist.min.js will not work. It has some dependencies on other files that you need to include as well. Please check the following documentation article that explains it:

http://docs.telerik.com/kendo-ui/install/custom#treelist

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Thierry
Top achievements
Rank 1
answered on 28 Nov 2014, 01:10 PM
Hello Kiril,

Thanks a lot for your answer.
It helps us.

Best regards,
Dominika

Tags
TreeList
Asked by
Thierry
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Thierry
Top achievements
Rank 1
Share this question
or