This example demonstrates how to implement a View Controller that will access layout controls and customize them as required. In particular, the second tab in the tab control should become active when opening the detail form.
Steps to implement
1. This functionality is implemented in the WinCustomizeTabControlViewController and WebCustomizeTabControlViewController classes that are added into the WinForms and ASP.NET module projects respectively (copy these classes into the respective projects of your test solution). Take special note that on the Web we are activating a required tab on the client side instead of using the server-side ASPxTabControlBase > ActiveTabIndex property, which is not appropriate for updating tab control on external callbacks (learn more...).
2. To identify the layout element by the "TabbedGroup" string, make sure this identifier is specified under the Views | YourBusinessObject_DetailView | Layout node in the Model Editor invoked for the YourSolutionName.Module/Model.DesignedDiffs.xafml file.
eXpressApp Framework > Concepts > UI Construction > View Items LayoutHow to show the number of the nested list view's items in the tab caption (Web)
How to set active tab in a Web DetailView layout after executing an Action
Files to look at:• WebCustomizeTabControlViewController.cs (VB: WebCustomizeTabControlViewController.vb)
• WinCustomizeTabControlViewController.cs (VB: WinCustomizeTabControlViewController.vb)