How to collapse/expand Tab by code

3 posts, 0 answers
  1. Bhupendra
    Bhupendra avatar
    21 posts
    Member since:
    Jul 2012

    Posted 13 Jun 2014 Link to this post

    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. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 13 Jun 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Bhupendra
    Bhupendra avatar
    21 posts
    Member since:
    Jul 2012

    Posted 13 Jun 2014 in reply to Dimiter Madjarov Link to this post

    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.
Back to Top