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

Expanding panels when using AngularJS directive

1 Answer 153 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Loc
Top achievements
Rank 1
Loc asked on 02 Jun 2015, 12:18 AM

Hello,

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.

Thanks,

Loc

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 03 Jun 2015, 03:39 PM
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.

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