This example provides a platform-agnostic module that allows your end-users to add View Variants dynamically. Refer to the Best practices of creating reusable XAF modules by example of a View Variants module extension blog post for more information.
IMPORTANT NOTES
1. Although this example contains only platform-agnostic code, it cannot be used in the same scenarios on the Web, because there are no layout customization available for XAF Web applications at this time.
So, you may want to create a Web version of this module with a descendant of the UserViewVariantsController class, and the overridden OnActicated method where the UserViewVariants Action will be disabled if View is DetailView.
2. Due to the application model generation specifics on the Web, model customizations performed by UserViewVariantsController will not be stored between user sessions by default. However, it should work the same way as in Windows Forms applications if you store your end-user model differences in the database or any other store: How to store users' model differences separately for each user in the database
See also:
ViewVariants - provide the capability to save the current view as a new view variant at runtime
Example Comments
Added By: Robert Fuchs at: 9/2/2013 4:36:24 PM
Modified today but still not for 13.1 !?
Why?