AngularJS DataSource

4 posts, 0 answers
  1. Rainer Goos
    Rainer Goos avatar
    6 posts
    Member since:
    May 2007

    Posted 21 Nov 2014 Link to this post

    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
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 21 Nov 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Rainer Goos
    Rainer Goos avatar
    6 posts
    Member since:
    May 2007

    Posted 25 Nov 2014 in reply to Kiril Nikolov Link to this post

    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?
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 27 Nov 2014 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready