This is a migrated thread and some comments may be shown as answers.
AngularJS DataSource
3 Answers 47 Views
This is a migrated thread and some comments may be shown as answers.
Rainer Goos
Top achievements
Rank 1
Rainer Goos asked on 21 Nov 2014, 09:32 AM
I'm trying to simply bind a data source to a Kendo UI Menu, but somehow I can't get it to work. What am I doing wrong here?

Dojo example: http://dojo.telerik.com/idIbe/2

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 21 Nov 2014, 12:39 PM
Hello Rainer,

You are not including the Kendo UI directives correctly, please check the following working example:

http://dojo.telerik.com/idIbe/3

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
Rainer Goos
Top achievements
Rank 1
answered on 25 Nov 2014, 02:05 PM
Hello Kiril,

Thank you for your answer. You were right, the directives were not loaded. I was used not to worry about them as we load them in our base module. 

The problem however is that we need a way of binding/setting/updating the data source in the "init" method. That's where we process data received via services from the server. Part of the items which need to be displayed are dynamically generated on the server. Is there a way of manipulating the data source in the "init" method?
0
Kiril Nikolov
Telerik team
answered on 27 Nov 2014, 08:28 AM
Hello Rainer,

The Kendo UI Menu's dataSource is not the Kendo UI dataSource that supports remote data operations and all the different events. The dataSource of the Kendo UI Menu is a simple array property. If you want to detect when the widget is initialized you can use the Angular kendoWidgetCreated event, as shown here:

http://docs.telerik.com/kendo-ui/AngularJS/global-events

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Menu
Asked by
Rainer Goos
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Rainer Goos
Top achievements
Rank 1
Share this question
or