Set target window for Notification object

  1. #1

    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
  2. #2

    RE: Set target window for Notification object

    Anyone, please?
  3. #3

    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.


    Geoffrey McGill
    Founder
  4. #4

    RE: Set target window for Notification object

    As they say, an image tells more than a thousand words.... please see attached.

    Thank you!
  5. #5

    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.


    Geoffrey McGill
    Founder
  6. #6

    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!


  7. #7

    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.


    Geoffrey McGill
    Founder
  8. #8

    RE: Set target window for Notification object

    Thanks once again Mr. Geoffrey!!

    I've figured it out following the example.


    X.MessageBox.Notify(new NotificationConfig { Title = "Success", Html = "message", Icon = Icon.Information, BringToFront = true, AlignCfg = new NotificationAlignConfig { El = this.win_detl.ClientID } }).Show();

Similar Threads

  1. [CLOSED] HTMLEditor link with new window (target=_blank)
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 18, 2012, 9:53 AM
  2. Close all the Notification Window.
    By NishaLijo in forum 1.x Help
    Replies: 3
    Last Post: Apr 03, 2012, 8:57 AM
  3. Replies: 12
    Last Post: May 17, 2011, 7:08 AM
  4. [CLOSED] Notification window
    By majestic in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 04, 2011, 2:01 PM
  5. Replies: 2
    Last Post: Feb 05, 2009, 11:02 AM

Posting Permissions