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

Calling radConfirm fom a popup dialog

1 Answer 81 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 17 May 2011, 04:06 PM
I have a page which displays in a RadWindow.

This page does not have a RadWindowManager on it but I need to fire a radconfirm from it.

I thought I could be clever and write this ...
GetRadWindow().BrowserWindow.radconfirm("Are you sure you want to remove this document?", removeDocument);
and it works. Almost.

The radconfirm appears behind the RadWindow.

Is there any way, short of having to include a RadWindowManager on my popup page, of getting the radconfirm on top?

-- 
Stuart

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 18 May 2011, 01:37 PM

Hi Stuart,

This behavior is due to the fact that the focus remains in the RadWindow that you call the confirm from. This is a browser behavior and the way to work around that is to simply add a simple setTimeout() function with a delay of 0 milliseconds.

For your convenience I created and attached a simple page illustrating the approach.



Best wishes,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or