Text notification display (e.g. confirmation messages, warnings, errors) has been simplified for desktop and Web XAF applications with the help of the platform-agnostic DevExpress.ExpressApp > ShowViewStrategyBase > ShowMessage method. You can quickly learn more about it from this blog as a preview of this functionality was already available in XAF v16.2.5+.
With v17.1, this functionality was greatly extended based on customer feedback and you can research it further in the FeatureCenter and SimpleProjectManager demos:
We also look forward to hearing from you once you have had an opportunity to try this extended ShowMessage functionality in v17.1 (please submit separate tickets using the https://www.devexpress.com/Support/Center/Question/Create service for that purpose).
- 16.2.3 : Download official update
With version 16.2, the use of custom dialogs has been simplified for both WinForms and ASP.NET applications. The ShowViewStrategyBase.ShowViewInPopupWindow method displays the specified View in a popup dialog with OK and Cancel buttons.[C#]
You can also pass the okDelegate and cancelDelegate parameters to this method, to specify the code to be executed when the OK and Cancel buttons are clicked. Button captions can be customized using the okButtonCaption and cancelButtonCaption parameters.
The ShowViewInPopupWindow method provides a platform-agnostic way to display popup dialogs from your code. However, there are certain specifics in ASP.NET applications:
- The ShowViewInPopupWindow method can be used on XafCallbackManager callbacks initiated by the RaiseXafCallback script. It cannot be used on callbacks of controls (e.g., grid sorting).
- It is impossible to pause the current request to wait for the user input.
- Main window is not refreshed when the Cancel button is clicked.Show all comments