Ticket S90418
Visible to All Users

Core - Make it possible to activate the same ViewController or Action for multiple Views or target object types

created 17 years ago

Viewcontrollers apply to one screen or all now, in some cases it's easy to make the usable for mutiple screen.
Look at this issue for more info : http://www.devexpress.com/Support/Center/p/Q93907.aspx
Proposed Solution:
Ability to select mutiple views from the designer

Answers approved by DevExpress Support

created 11 years ago (modified 5 years ago)

We have implemented the functionality described in this ticket. It will be included in our next update(s).

Please check back and leave a comment to this response to let us know whether or not this solution addresses your concerns.

Additional information:

You can pass multiple View identifiers to the ViewController.TargetViewId and ActionBase.TaregetViewId properties. These properties accept a semicolon-separated list now. The Controller/Action will be activated for each listed View.

For alternative options, see How to implement a controller that will work for more than one target object type.

    created 13 years ago (modified 11 years ago)

    Hello Xavier,
    I have to decline your suggestion as we do not have immediate plans to extend the ViewController class to make it possible to select multiple object types or View identifiers, because there are already suitable solutions for this task in the current version.
    You can either use the solution from the How to implement a controller that will work for more than one target object type (Example) example or deactivate your controller based on your custom conditions as described in the http://community.devexpress.com/blogs/eaf/archive/2011/07/04/best-practices-of-creating-reusable-xaf-modules-by-example-of-a-view-variants-module-extension.aspx walk through. I hope you find this information helpful.
    See Also:
    Designers.ViewController - allow controllers to have an interface as a target object type

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.