Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
475
get tabItem index or id from tabViewClientEvents: selectedTabChanged
posted

Hi,

I need to get tab item index or id when user clicked on the tab, from selectedTabChanged event function:

 

 

 

 

 

function

 

 

var line = sender.get_id() + ": selectedTabChanged";

line = line +

" currentTab:" + args.get_currentTabView();

line = line +

" newTab:"+ args.get_newTabView();

addLine(line);

}

I can get object here, but I don't know how to get tab item index or id. I cannot find any examples or

documentation on it.

Please help,

Thanks,

Yan

 

mySelectedTabChanged(sender, args) {

 

Parents
No Data
Reply
  • 1765
    Suggested Answer
    posted

    Hello yzbythesea,

    Below is the code snippet to get current TabItem ID.

     function mySelectedTabChanged(sender, args){

                    var currentTabElement = args.get_currentTabView();

                    var currentTabID = currentTabElement.elm.id;

                    alert(currentTabID);

    }

     Hope this helps. Please let us know if you have any questions.

    Sincerely,

    Swetha

Children
No Data