if (typeof $util !== 'undefined') { var tab = $util.findControl(jQuery('div[name^="tab"]')[0].id); var crrntTab = tab._tabs[tab.get_selectedIndex()]; page = crrntTab._element.childNodes[0].src; }
Is there a better way to do this?
Hi dan2012a,
Thank you for posting in the community.
You can access the currently selected tab in WebTab using something similar to:
var webTab = ig_controls.WebTab1; var selectedIndex = webTab.get_selectedIndex(); var selectedTab = webTab.get_tabs()[selectedIndex];
The CSOM for WebTab can be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=WebTab~Infragistics.Web.UI_namespace.html
Please let me know if this helps.