Set target window for Notification object
Hello,
I've a window (id: win_page), which is in the iframe mode. The iframe loads an .aspx page which has another Window (id: win_detl).
I'm calling a Notification inside the "win_detl" page, but the notification is being showed positioned in the bottom-right corner of the outer window, "win_page".
How can I set a target window for the Notification object?
Thank you!
Rodrigo
RE: Set target window for Notification object
RE: Set target window for Notification object
Hi RPIRES,
I'm not really sure I understand how your page is configured, but the notification will pop-up (bottom-right by default) within whatever page you call it from.
Maybe posting a simplified code sample demonstrating how you have things configured will help us understand.
RE: Set target window for Notification object
As they say, an image tells more than a thousand words.... please see attached.
Thank you!
RE: Set target window for Notification object
Hi RPIRES,
The following example demonstrates many options for aligning the notification window, see
https://examples1.ext.net/#/MessageB...tion/Overview/
Hope this helps.
RE: Set target window for Notification object
Geoffrey,
The problem is NOT the alignment (top, bottom, right, left etc) of the notification message....
The problem is the WINDOW element that Coolite is using as base to align the notification message...
Did you understand the architecture I've showed in the attached image?
Tks!
RE: Set target window for Notification object
Hi RPIRES,
By default the Notification window will align to the bottom-right corner of the Page. Even if called from within a UserControl. This is the desired behaviour.
If you want the Notification window to align to a different element, then you need to configure the alignment as per the example I posted above.
Hope this helps.
RE: Set target window for Notification object
Thanks once again Mr. Geoffrey!!
I've figured it out following the example.
Code:
X.MessageBox.Notify(new NotificationConfig { Title = "Success", Html = "message", Icon = Icon.Information, BringToFront = true, AlignCfg = new NotificationAlignConfig { El = this.win_detl.ClientID } }).Show();