Expanding panels when using AngularJS directive

2 posts, 0 answers
  1. Loc
    Loc avatar
    5 posts
    Member since:
    Apr 2015

    Posted 01 Jun 2015 Link to this post


    First off I am a first time Kendo UI user. I really liked what I see from my trial so I purchased the UI Pro license.

    I need to programatically expand panels in my accordion. I see the sample code for doing it the jQuery way but is there a sample that shows how I can do it the Angular way? I am thinking I need to create my own directive that does what your jQuery sample does in the linking function. I hope someone else has solved this problem.



  2. Alexander Valchev
    Alexander Valchev avatar
    2873 posts

    Posted 03 Jun 2015 Link to this post

    Hi Loc,

    Please check this help topic as it describes how to get reference of the widget inside the controller.
    Once you have a reference of the widget in the scope you can use the API methods.

    This approach does not require using of jQuery to get the widget element.

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top