RadWindow and loaded event

7 posts, 0 answers
  1. simeon
    simeon avatar
    12 posts
    Member since:
    Sep 2008

    Posted 10 Sep 2009 Link to this post

    I have a page that loads severa RadWindows.  It seems that when I focus one window and then re-focus the original window the Loaded event fires again.   Is this the way it is meant to work?  If it is I can live with it by coding round it but to me it just seems wrong.

    Any pointers would be appreciated.

    Cheers,

    Simeon 
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 10 Sep 2009 Link to this post

    Hello Simeon,

    Unfortunately this was the only way we were able to implement the BringToFront functionality (the Silverlight Popup control doesn't support ZIndex and the only way to bring one popup in front of the others is to reopen it). We don't like this also, but we won't be able to fix it before the Canvas.ZIndex property start working.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Clint Singer
    Clint Singer avatar
    133 posts
    Member since:
    Oct 2012

    Posted 26 Feb 2010 Link to this post

    Hi,

    I have a usercontrol in the RadWindow and its loaded event also gets called everytime the window gains focus.  I assume this is the same as the issue described below?

    Cheers,
    Clint
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 01 Mar 2010 Link to this post

    Hello Clint,

     You are right - this is the same problem. The popup of the window is reopened every time when the window should bright itself to the front.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. chen zili
    chen zili avatar
    9 posts
    Member since:
    Aug 2009

    Posted 20 Apr 2011 Link to this post

    Solve RadWindow Loaded event will be redo when it BringToFront.
    I user WindowView to replace RadWindow,and use ViewLoaded replace Loaded.

    public class WindowView : RadWindow
    {
    /// <summary>
    /// Solve RadWindwo Loaded event bug,subscribe to ViewLoaded Event will excute once
    /// </summary>
    public event RoutedEventHandler ViewLoaded
    {
    add
    {
    this._ViewLoaded = value;
    this.Loaded += OnLoaded;
    }
    remove { }
    }
    private RoutedEventHandler _ViewLoaded;

    private void OnLoaded(object sender, RoutedEventArgs e)
    {
    this._ViewLoaded.Invoke(sender, e);
    this.Loaded -= OnLoaded;
    }
    }

  7. cagdas ilhan
    cagdas ilhan avatar
    1 posts
    Member since:
    May 2010

    Posted 14 May 2012 Link to this post

    Hi

    did you solve this radwindow problem?
  8. abhinav
    abhinav avatar
    1 posts
    Member since:
    Jan 2015

    Posted 12 Jan 2015 Link to this post

    Hi ,

    This issue can be solved by taking a integer and setting = 1 in initialization

    then check if =1 else increment it in Loaded
Back to Top
DevCraft banner