|
Article relates to
|
RadEditor for ASP.NET AJAX
Telerik.Web.UI
|
|
Created by
|
Rumen Zhekov
|
HOW-TO
How to set dialog pop up position
DESCRIPTION
The
built-in and
custom dialogs of RadEditor always pop up at the center of the page. The code solution below demonstrates how to load the editor's dialogs at the desired position on the page.
SOLUTION
1) for built-in dialogs:
2) for custom dialogs: Use the getRadWindow() method to get a reference to the RadWindow custom dialog in it InitDialog function and set its moveTo method to position the dialog on the page:
This code should be placed in the ASPX dialog page loaded through the
showExternalDialog method
showExternalDialog(
url (aspx/html file), argument, width, height, callbackFunction, callbackArgs, title, modal, behaviors, showStatusbar, showTitlebar);
More information is available in this live demo:
Custom Dialogs.