Loaded/Unloaded events

8 posts, 1 answers
  1. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 06 Oct 2011 Link to this post

    If I open three windows (W1, W2 and W3) - the loaded event is called once per window.
    W3 is now active
    If I click W2 the loaded AND unloaded event is fired for BOTH windows? Why?
    If I click W1 the loaded AND unloaded event is fired for ALL THREE windows? Why?
    Logically this does not make sense. The loaded event should fire for the active/foremost window and the unloaded event should fire for the previous window.

    I can manage these events on the window and the main usercontrol (content) by having a flag that tells if the window is open or closed, but if there are controls/usercontrols in the content that subscribe to their own loaded/unloaded events there is trouble since they fire 5-6 times every time I switch between windows (they don't know if they should ignore these events or initialize/clean-up).
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 Oct 2011 Link to this post

    Hello Jorn,

    Thank you for contacting us. We were able to fix the problem and the fix will available in the next internal build. Though the loaded event will still be fired of the window that is brought to the front as this is required to close and reopen its popup in order to bring it to the front.

    Your Telerik points were updated for your cooperation.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Ye
    Ye avatar
    23 posts
    Member since:
    Dec 2010

    Posted 10 Oct 2011 Link to this post

    1. When the next internal build will be released?
    2. What should we do about this problem by now?
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 10 Oct 2011 Link to this post

    Hello Ye,

    The internal build will be available for download tomorrow. Hope the fix will suit your needs.

    Regards,
    Boyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 11 Oct 2011 Link to this post

    It seems to be fixed now, thanks for the fast response!
    To be clear; it's by design that the unloaded/loaded event fires for the window being brought to the front?
  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 Oct 2011 Link to this post

    Hello Jorn,

    It is not by design, but it is caused by a limitation in the framework - the popup control cannot be brought to the front without closing it, which causes this side effect. This will change if the popup start to support ZIndex or bring to front functionality.

    Hope this information is helpful.

    Kind regards,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  8. Jorn
    Jorn avatar
    222 posts
    Member since:
    Jun 2009

    Posted 11 Oct 2011 Link to this post

    Do you know if this is fixed in SL5?
  9. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 Oct 2011 Link to this post

    Hello Jorn,

    No, it works exactly the same way in the current version of SL5.

    All the best,
    Miroslav Nedyalkov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner