Ticket S172628
Visible to All Users

Provide the capability to reset View controls' settings defined at runtime

created 11 years ago (modified 9 years ago)
Show previous comments (2)

    Hi Dennis,
    Thanks for the sample - very useful feature. I get an exception if I try to do a reset on a ListView (Grid) nested within a DetailView (WinForms). See Exception details below.
    Is this a general problem or might it just have to do with my specific project settings (Xpand etc.)?
    Regards
    Johannes
    System.ArgumentException occurred
     HResult=-2147024809
     Message=Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt.
     Source=mscorlib
     StackTrace:
          bei System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
          bei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
          bei Xpand.Persistent.Base.General.Controllers.InvalidEditorActionBaseControllerWin.ItemOnControlCreated(Object sender, EventArgs eventArgs) in c:\Release151\Xpand\Xpand.Persistent\Xpand.Persistent.Base\General\Controllers\InvalidEditorAction.cs:Zeile 58.
          bei System.EventHandler`1.Invoke(Object sender, TEventArgs e)
          bei DevExpress.ExpressApp.Editors.ViewItem.OnControlCreated()
          bei DevExpress.ExpressApp.Editors.ListPropertyEditor.OnControlCreated()
          bei DevExpress.ExpressApp.Editors.ViewItem.CreateControl()

    Dennis Garavsky (DevExpress) 9 years ago

      Hi Johannes,

      Thanks for your feedback! According to the call stack there is an issue in eXpand, which you can report via their forum.

        Thanks Dennis, I posted it there.

        Answers approved by DevExpress Support

        created 9 years ago (modified 8 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:

        We have introduced ResetViewSettingsController, which is activated for all Views and contains the ResetViewSettings Action.

        This Action re-opens the current View and resets all the user customizations of the View's model. If you use the ListViewAndDetailView display mode, the ResetViewSettings Action is applied to both List and Detail Views. This Action is disabled (grayed out) if there are unsaved changes.

          Comments (2)

            Thanks for implementing the ResetViewSettings. We had implemented the previous solution for lookup views - are there plans to include this for lookups?
            Thanks,

            DevExpress Support Team 9 years ago

              Hello Simon,
              Thank you for your valuable feedback. We will take it into account for our future releases.

              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.