This is a migrated thread and some comments may be shown as answers.
RadWindow and loaded event
6 Answers 96 Views
This is a migrated thread and some comments may be shown as answers.
simeon
Top achievements
Rank 1
simeon asked on 10 Sep 2009, 08:11 AM
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 

6 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 10 Sep 2009, 02:52 PM
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.
0
Clint Singer
Top achievements
Rank 1
answered on 27 Feb 2010, 01:58 AM
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
0
Miroslav Nedyalkov
Telerik team
answered on 01 Mar 2010, 04:40 PM
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.
0
chen zili
Top achievements
Rank 1
answered on 21 Apr 2011, 03:57 AM
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;
}
}

0
cagdas ilhan
Top achievements
Rank 1
answered on 14 May 2012, 02:23 PM
Hi

did you solve this radwindow problem?
0
abhinav
Top achievements
Rank 1
answered on 12 Jan 2015, 08:47 AM
Hi ,

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

then check if =1 else increment it in Loaded
Asked by
simeon
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Clint Singer
Top achievements
Rank 1
chen zili
Top achievements
Rank 1
cagdas ilhan
Top achievements
Rank 1
abhinav
Top achievements
Rank 1
Share this question
or