getting last tab in client code

2 posts, 1 answers
  1. Khanh Nguyen
    Khanh Nguyen avatar
    9 posts
    Member since:
    Jan 2010

    Posted 01 Feb 2010 Link to this post

    i have multiple tabs, with children tabs underneath.

    if you are in tab1, you see tab1's children

    TAB1 tab2
    tab1_1  tab1_2 tab1_3

    when clicking to tab2, i click tab2_3

    tab1 TAB2
    tab2_1 tab2_2 tab2_3

    now click back to tab1, then click to tab2, how do i get current tab which is ( tab2_3 ) ?

    visually i see that tab2_3 is selected, but the code to determine which tab is selected used below,
    always tells me it's tab2_1, not tab2_3

          function onTabSelected(sender, args) { 


  2. Answer
    Yana avatar
    5043 posts

    Posted 03 Feb 2010 Link to this post

    Hello Khanh,

    Please try it like this:

    <script type="text/javascript">
        function tabSelected(sender, args) {
            if(args.get_tab().get_level() == "0" && args.get_tab().get_selectedTab())

    All the best,
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.
Back to Top