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

How to reset View customizations made by end-users

$
0
0

Scenario
A new Reset View Settings Action is added into the toolbar that allows end-users to reset customizations made in root Views (this approach is not suitable for nested ListViews).
This functionality can be helpful if your end-users break the default layout, and after that, they want to restore it back.

Steps to implement
1. Copy the ...\WinSolution.Module.Win\ResetSettingsViewController.xx file into YourSolution.Module.Win module project.


See also:
How to save the currently opened View as a new View Variant at runtime

Question Comments

Added By: Juan Pallas Ribes at: 5/22/2015 4:24:40 AM    

I want to reset customizations in nested listviews, so I set targetViewNesting = Nesting.Any. After executing action in a nested listview, all objects are loaded, instead of objects related to the master object.

How can I reset customizations in nested listviews?

Thanks

Added By: Dennis (DevExpress Support) at: 5/22/2015 6:31:17 AM    

@Juan: This approach is not suitable for nested ListView, I am afraid. At the moment, I can only recommend you recreate the whole parent DetailView if you have updates to its nested ListView.
>>I want to reset customizations in nested listviews,
Would you please also describe your specific use-case scenarios from an end-user perspective? I am asking because there may be different technical solutions.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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