CHAN Reference
Chan Home | Reference Home | Event Firing Order | web.config
Controls.TabPanel
- Name TabPanel
- CSS Class CC_TabPanel
- Type NA
Groups Panels together using a Tab-like interface, all you need to do is wrap this control around a set of Panels and set their Text properties to the text you want their tab/button to display. If a button press causes the form to validate then a tab who's controls are hidden - but invalid - will show the "invalid" icon against the tab button itself, and these icons will remain in place while switching tabs.
The Tabpanel will normally use javascript to switch tabs unless it is either not available on the client or you have enabled NoScript for the TabPanel, Page or Site.
However if you have ValidatePanels set to True but the Form (or Site) has ClientValidate set to False then the TabPanel will use postbacks to switch tabs in order for ValidatePanels to function correctly.
TabPanels can also be used outside of a form, and when combined with the NoScript parameter will use GET requests to switch panels, preserving any querystring you already have set. This also lends itself to the ability to override any POST action to set a TabPanel's Panel via the querystring, simply send "?[TabPanelID]___CurrentPanel=[PanelID]"
Accessibility Tip : Include a sub-heading within each tabbed panel instead of relying on the tab-button to indicate the current selection. This will help screen readers provide the correct emphasis. Also TabPanels will normally render the HTML for all child panels in one go with Javascript used to perform the switching. In this case the sub-headings will help divide a non-styled linear page into an effective set of sub-sections for users with a custom style sheet.