Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to access a tab control in a Detail View layout

$
0
0

Scenario
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).

2. Take special note that to identify the layout element, we look at its identifier, which is specified in the Model.DesignedDiffs.xafml file of the platform-agnostic module.

See also:
eXpressApp Framework > Concepts > UI Construction > View Items Layout

Question Comments

Added By: Wieland Voß at: 4/26/2016 11:30:50 PM    Hi all.

Do you have a hint for me, how to determine the index of the active tab?
And moreover, how to determine the index of a particular tab (i. e. by name)?

I want to switch to the "totals" tab, only if the "particulars" tab is the active one.

Best regards,
Wieland

Added By: Dennis (DevExpress Support) at: 4/26/2016 11:37:37 PM    

@Wieland: I've created a separate ticket on your behalf (T372263: how to determine the index of the active tab?). It has been placed in our processing queue and will be answered shortly. Please specify your target platform in that new ticket as well (WinForms/Web).


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>