Ticket T402375
Visible to All Users

How to show DetailView shown by the New and Edit actions in a popup window

created 9 years ago

Hello,

I want to display a Popup dialog for add and edit operation when an user will double click on a particular record from the ListView. Is it possible in XAF. If yes, kindly let me know how to achieve this.

Thank
Rashmi Ranjan Panigrahi

Answers approved by DevExpress Support

created 9 years ago

Hello,

There are two ways of implementing this functionality:

  1. Handle the Execute event of the corresponding actions (NewObjectViewController.NewAction and ListViewController.EditAction) and set the e.ShowViewParameters.TargetWindow property to NewModalWindow. See an example here: Show Detail View (for View or Edit) in Popup Window on Web when triggered from ListView in Dashboard.
  2. Implement a custom Show View Strategy and call the ShowViewInModalWindow method for the required cases - see Web: How to change Show View Strategy to open all detail views in a modal popup window in stead of main window.

Let me know if you need further assistance.

    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.