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

RadEditor, externaldialogspath, and aspnet_compiler

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 12 Jun 2014, 09:07 PM
We are trying to customize the javascript in the LinkManager dialog.
The EditorDialogs folder has been copied to our webapp foloder and we modified the javascript (and some of the html).
The externaldialogspath property for RadEditor is set to "~\EditorDialogs".
The code works as expected on the dev machines.
As part of deploying our application we pre-compile using aspnet_compiler.
When the deployed app is run, the changes are not present.

I believe the Telerik.Web.UI.dll is taking precedence over the compiled ascx file from ~\EditorDialogs.

Any suggestions?

Thanks,
Bill

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 16 Jun 2014, 12:17 PM
Hi Bill,

Thank you for contacting the Telerik support.

Indeed when the aspnet precompiler is used the customized ASCX file is not properly deployed or being overridden by the Telerik.Web.UI library. Such behavior is expected because when the files are compiled the methods of the customized ASCX and the one from built-in are the same.

A simple workaround I found is to insert the customized dialog file from the DEV environment to the deployment server. Using the aspnet compiler, the generated folder structure is the same as the one from the original project and just copying and pasting the file should work fine.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Bill
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or