This is a migrated thread and some comments may be shown as answers.

RadWindow.Confirm .Alert .Prompt BringToFront?

4 Answers 368 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 23 Nov 2009, 04:27 PM
Is it possible to force these three options to always come to the front?  I'm encountering an issue when I have multiple RadWindow's open that if one of those Windows calls either of these three options that the Confirm,Alert,Prompt is behind the Window.  Works fine if there is only 1 Window open at a time.

4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 23 Nov 2009, 05:10 PM
Hello Kevin,

The newly opened windows always come to the front. The problem comes when you open a new window just before the Activate method of another RadWindow is called (this happens when a RadWindow is clicked). If you have a button in a RadWindow and you show a confirm when the user mouse down the button, the new window will appear under the old one, because the old one will call its Activate method. You could work this around by opening the new windows after the click event.

If this doesn't help, please send us a sample project that represents the issue - this would help us investigate what the problem is.

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
Kellie
Top achievements
Rank 1
answered on 10 Feb 2012, 07:36 PM
Try setting the owner of the RadWindow and it should come to the front.

Silverlight e.g.

 

var owner = this.ParentOfType<ContentControl>();
var dlgParams = new DialogParameters
    {
        Content = e.MessageString,
        Header = "Save Failed",
        Owner = owner
    };
RadWindow.Alert(dlgParams);

WPF e.g. 

var dlgParams = new DialogParameters
{
    Content = e.MessageString,
    Header = "Status",
    Owner = this
};
RadWindow.Alert(dlgParams);

 

Kellie Harrisson
Sierra Systems, Edmonton, Canada

0
Robert
Top achievements
Rank 1
answered on 31 Jan 2014, 10:37 AM
Thanks, your solutions appears to work well.
0
Shyam
Top achievements
Rank 1
answered on 18 Jul 2014, 08:57 AM
Hi,

I am facing the same problem, i tried the way you have shown in your reply but still it does not work for me as i am not able to find the "Owner" property in "DialogParameters" 

Any help will be highly appreciated.

Thanks,
Shyam
Tags
Window
Asked by
Kevin
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Kellie
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Shyam
Top achievements
Rank 1
Share this question
or