javascript - how to activate second tab of Kendo UI tabstrip using angularJS - Stack Overflow

I'm basically new to Angular world. But trying hard to get the phase.What problem I now have is, h

I'm basically new to Angular world. But trying hard to get the phase.

What problem I now have is, how to access kendo tabstrip in my JS file and activate second tab onClick().

Please note I do not want to use selectors i.e., #tabStripID

I'm trying to see if there is any way to do it?

pl find the plunker

Looking for the help.

Thanks, Sammi

I'm basically new to Angular world. But trying hard to get the phase.

What problem I now have is, how to access kendo tabstrip in my JS file and activate second tab onClick().

Please note I do not want to use selectors i.e., #tabStripID

I'm trying to see if there is any way to do it?

pl find the plunker http://plnkr.co/edit/6l8R4ggLxOA589IcbRK9?p=preview

Looking for the help.

Thanks, Sammi

Share edited May 11, 2015 at 16:34 scniro 17k8 gold badges66 silver badges107 bronze badges asked Jul 1, 2014 at 14:40 SammiSammi 1193 silver badges11 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

In your HTML change

<div id="tabstrip" kendo-tab-strip>

with

<div id="tabstrip" kendo-tab-strip="tabstrip">

And change your controller as below

  $scope.activateSecondTab = function() {
    $scope.tabstrip.select(1);
  };

I saved a working example at http://embed.plnkr.co/OjKwKRjupDWwNPifqzm2/preview

Enjoy!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744880984a4598836.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信