This example demonstrates available ways to manipulate the DevExpress MVC PageControl extension programmatically on the client using enhanced client-side functionality. The client object of the PageControl extension can be accessed on the client-side by its Name.
The PageControl extension allows a tab's content to be changed dynamically on the client side by using the SetTabContentHTML method. The GetActiveTab method can be used to access the currently active tab.
The ShowTabContent function displays (in a specific text region) the HTML code which represents the active tab's content. The content of the active tab is obtained via the GetTabContentHTML method.
The ActiveTabChanged function represents the hander for the ActiveTabChanged client event. The event's argument contains information on the active tab which is used to synchronize the value of the dropdown editor.
A tab can be activated by using the SetActiveTab method. In this demo, each tab is identified using its server-side Name property. In order to obtain a specific tab by its name on the client side, the GetTabByName method is used.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxNavigationAndLayoutDemos |