New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Using browser modal dialog instead of RadWindow


Use browser modal dialog instead of RadWindow based dialogs of RadEditor


By default, all editor's managers use RadWindow as a dialog. The advantage of the RadWindow windows is that they will not be blocked by the browser's pop-up blockers.

However, there is a side effect that it is not possible to popup a RadWindow dialog over another RadWindow dialog, because the content area of RadWindow is an IFRAME element. In such scenarios the solution is to use the browser modal dialogs instead of RadWindow.


All you need to do to configure the editor's dialogs to use the browser modal dialogs is to set a "true" parameter to the editor's set_useClassicDialogs() method. Here is an example:

<script type="text/javascript">  
function OnClientLoad(editor)  
<telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad"  runat="server"></telerik:RadEditor>  

The parameter of the set_useClassicDialogs() metod specifies whether RadEditor will use RadWindow windows or browser popup windows for its dialogs.

In this article