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
3. Be aware of the following known behavior: E2813 - Incorrect View Variant is shown as selected after the second creation of a custom variant
Question Comments
Added By: Robert Fuchs at: 9/2/2013 1:36:24 PM
Modified today but still not for 13.1 !?
Why?
Robert, this example was already available for version 13.1 before today. Today was just a maintenance update without much changes.
Added By: Robert Fuchs at: 9/3/2013 10:12:12 AMThanks Dennis.
Interestingly the version combo didn't show 13.1 yesterday.
I downloaded it anyway and it worked in 13.1 after changing .Net FW type to 4.
Hello, This is a great solution, but after upgrading to 13.2 it does not compile, Do you have a version for 13.2?
Thanks
Richard
waiting upgrade for 13.2
Added By: Willem de Vries at: 1/8/2014 8:49:14 AMJust leaving a comment to be included in any update messages. Waiting for a remedy for this breaking change to be able to upgrade to 13.2 with many of my applications.
Added By: Tony Tadros at: 1/14/2014 9:52:19 AMi have a suggestion to support such functionality of of the box
Added By: Stefan Tschiharz at: 1/23/2014 12:38:29 AMCould the example be updated to 13.2.6?
Added By: Dennis (DevExpress Support) at: 1/23/2014 12:41:45 AMGuys, please refer to my answer in Q554368 (there you can find an updated version + a link to a hot fix build).
Added By: Kanapol W. at: 1/29/2014 7:58:02 AMRight now, I have upgrade to v2013 vol 2.5
I use the most update code in "v2013 vol 1.4- v2013 vol1.9" . It get the error.
Would you please update this example to work with the most update version?
@Kanapol: This example will be updated once the version 13.2.7 is out (in a week or so). In the meantime, please check out my previous comment for a solution. Thanks.