Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to manipulate TabControl with JavaScript?

0
Posted

How to manipulate TabControl with JavaScript?

0

Tab pages in TabContainer can be manipulated on client side directly. 1. Get a reference to the component on client side via $find function. 2. Invoke a corresponding function on the component to manipulate it. For instance: var tab = $find(“tabContainer’s ClientID”); tab.set_activeTabIndex(1); // active the second tab panel tab.getFirstTab().set_enabled(false); // disable the first panelAll of the functions defined in the TabContainer control can be found in the Tabs.js file of AJAX control toolkit’s source code. Related thread: http://forums.asp.net/t/1179322.aspx 9. Accordion 9.1 Add an Accordion Pane on client side [top] Below is a sample demonstrates how to achieve it: <%@ Page Language="C#" %>

Experts123