Ticket T1043809
Visible to All Users

XAF Blazor - Show default toast messages in the middle of the window

created 3 years ago

Dear team,

built in toast messages (validations, user friendly exceptions) are displayed at the bottom of the browser window. The toast is sometimes hidden when part of the browser window is not visible on the screen.

What do I have to do to display it in the middle of the browser window?

Thanks and best regards
Peter

Answers approved by DevExpress Support

created 3 years ago

Hello Peter,

You can change this window's position using CSS. For example, change the xaf-alerts-stack-inner class' bottom or justify-content styles:

CSS
.xaf-alerts-stack-inner { justify-content: center; }

To find appropriate classes and styles, invoke a message, pause script execution in the browser's Developer Tools (F12), and check the message's markup:
Clipboard-File-1.png

Please let me know if you have any questions.

    Comments (2)

      Hello Anatol,

      thanks, works perfectly!
      The hint about pausing script execution was very helpful too!

      Best regards
      Peter

      Anatol (DevExpress) 3 years ago

        You are welcome!

        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.