2

I am using Telerik's RadEditor control on a page. It is the only Telerik control in use, but the telerik.web.ui.webresource.axd that is downloaded includes the radwindow javascipt code. I understand RadEditor uses this for some dialogs but my page does not and would like to improve performance by removing this script from telerik.web.ui.webresource.axd.

Is it possible to customize it at all?

Morgan T.
  • 1,937
  • 1
  • 17
  • 20

1 Answers1

2

You can disable the RadEditor control from using embedded web resources by setting UseEmbeddedScripts = false. If you set UseEmbeddedScripts to false, files from the RadControls folder will be used.

For a more detailed explanation see Disabling embedded resources.

Daniel
  • 5,602
  • 4
  • 33
  • 36
  • It seems to have reduced the size of the telerik.web.ui.webresource.axd JS that gets downloaded but it's still there... hmm – Morgan T. May 15 '12 at 17:11
  • Is the RadWindowScripts.js still showing up? If so, is it using the one in the default direcotry Path="~/Scripts/Window/RadWindowScripts.js"? If so, you could edit out the part you don't want if you are ok with the results of that. – Daniel May 15 '12 at 18:37
  • Yea that is one (of them). Good idea. Have you done that before? – Morgan T. May 15 '12 at 18:39
  • I've done something similar with a .css file, but not with a .js file. (In http://stackoverflow.com/questions/8988592/ I have an answer dealing with a .css file.) – Daniel May 15 '12 at 19:20