I have a tabstrip and a multipage and want to be able to have individual tabs clicked which show their individual relevant pages along with an All tab which, when clicked, shows all multipages. Then, if you click on a single page tab, it shows only that one page, etc etc.
I have it all working fine, with six tabs with six corresponding pages and an 'All' tab as the seventh tab - here's the relevant javascript.
Currently, I have tab #0 and page #0 as the selected tab/page. When I click the All tab, all pages are shown.
However, the functionality I want is to start with All pages being shown and have the All tab being the selected tab and then have the user show each individual tab by clicking whatever tab they want.
I cannot work out what event to connect to. I've tried onClientLoad for the tabstrip but I could not find a way of indexing through each page in the multipage and calling show() for each of them - I'm not even sure the multipage was loaded/available...
Can someone help me with the event to hook into and code to get this done.
Thanks in advance, Steve
I have it all working fine, with six tabs with six corresponding pages and an 'All' tab as the seventh tab - here's the relevant javascript.
function ShowOneTabOrAll(sender, args) { |
var multiPage = $find("<%=RadMultiPage1.ClientID %>"); |
var i; |
if (args.get_tab().get_text() == "All") { |
for (i = 0; i < multiPage.get_pageViews().get_count(); i++) { |
multiPage.get_pageViews().getPageView(i).show(); |
} |
} else { |
for (i = 0; i < multiPage.get_pageViews().get_count(); i++) { |
multiPage.get_pageViews().getPageView(i).hide(); |
} |
var tabIndex = args.get_tab().get_index(); |
multiPage.get_pageViews().getPageView(tabIndex).show(); |
} |
} |
Currently, I have tab #0 and page #0 as the selected tab/page. When I click the All tab, all pages are shown.
However, the functionality I want is to start with All pages being shown and have the All tab being the selected tab and then have the user show each individual tab by clicking whatever tab they want.
I cannot work out what event to connect to. I've tried onClientLoad for the tabstrip but I could not find a way of indexing through each page in the multipage and calling show() for each of them - I'm not even sure the multipage was loaded/available...
Can someone help me with the event to hook into and code to get this done.
Thanks in advance, Steve