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

How to collapse/expand Tab by code

2 Answers 163 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Bhupendra
Top achievements
Rank 1
Bhupendra asked on 13 Jun 2014, 09:46 AM
Hi,

 We have a requirement to collapse/expand TabStrip's currently selected tab using code - lets say on some button click. I already have set collapsible property as true for my Tab.
So is there any method that we can call in this case? I know the feature that clicking on tab header toggles the content - we need API for that so that we can call it from our code.

Thanks a lot,
Abhishek

2 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 13 Jun 2014, 10:14 AM
Hello Bhupendra,


Yes this could be achieved via the TabStrip API activateTab and deactivateTab methods.

Let me know if this was the information that you were looking for or I could assist further.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Bhupendra
Top achievements
Rank 1
answered on 13 Jun 2014, 11:25 AM
Hi Dimiter Madjarov,

 Thanks a ton for the quick response! It nailed it- I dont know how I missed it in the docs!.

Thanks a lot.
Tags
TabStrip
Asked by
Bhupendra
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Bhupendra
Top achievements
Rank 1
Share this question
or