Calling radConfirm fom a popup dialog

2 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 17 May 2011 Link to this post

    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?

  2. Marin Bratanov
    Marin Bratanov avatar
    3558 posts

    Posted 18 May 2011 Link to this post

    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,
    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top