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

Dialog is staying behind toolbar

3 Answers 47 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gokhan
Top achievements
Rank 2
Gokhan asked on 23 Oct 2009, 12:11 PM
Hi ;

we are using Rad Controls 2008 Q2.when you click the hyperlink manger with  firefox 3.5.x. Dialogbox stays behind toolbar see the attachment. It happens once , if you close it and reopen , it works as expected. 

  

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 28 Oct 2009, 02:11 PM
Hi Gokhan,

Thank you for reporting this behavior.

You can fix it by setting the editor's DialogsScriptFile property to point to your own js file "~/DialogJS.js"

<telerik:radeditor runat="server"  ToolbarMode="showOnFocus" ID="RadEditor1" DialogsScriptFile="~/DialogJS.js"  ></telerik:radeditor>

and putting the code below in the JS file and saving it:

 
function pageLoad() 
    var currentWindow = Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference(); 
    currentWindow.setActive(true);     
 
 
Sys.Application.add_unload(applicationUnloadHandler); 
 
function applicationUnloadHandler() { 
    var currentWindow = Telerik.Web.UI.Dialogs.CommonDialogScript.get_windowReference(); 
    currentWindow.setActive(false);     
 

This code will be loaded by all editor's dialogs and makes them active when they are loaded on the page.

Please, note that the DialogsScriptFile property was introduced in version 2008.3.1314 and allows to load custom javascript code in all editor's dialogs.

Sincerely,
Rumen
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
Gokhan
Top achievements
Rank 2
answered on 28 Oct 2009, 02:16 PM
Hi;

Thank you for your response. But i clarified that we  are using 2008 Q2 which is actually 2008.2.802. Is there any solution for this version ?
0
Rumen
Telerik team
answered on 29 Oct 2009, 10:47 AM
Hi Gokhan,

Please, excuse me for not being clear enough.

To fix the problem you should upgrade the Telerik.Web.UI.dll in your project to at least Q3 2008 SP2 (2008.3.1314) which offers the needed DialogsScriptFile property. This is the only possible way to solve this problem.

Sincerely yours,
Rumen
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.
Tags
Editor
Asked by
Gokhan
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Gokhan
Top achievements
Rank 2
Share this question
or