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

EnableEmbeddedjQuery?

1 Answer 113 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
SamVanity
Top achievements
Rank 2
SamVanity asked on 20 Jun 2012, 10:14 PM
Hi,

what's the deal about the new Telerik.ScriptManager.EnableEmbeddedjQuery feature? I look at the js produced and I can only see one difference:

/* START Telerik.Web.UI.Common.jQueryExternal.js */
if(typeof $telerik.$==="undefined"){$telerik.$=window.jQuery;
}
/* END Telerik.Web.UI.Common.jQueryExternal.js */
/* START Telerik.Web.UI.Calendar.RadDatePicker.js */

The jQueryExternal.js is embedded in front of the RadDatePicker.js.. it actually solved a $telerik.$ not defined problem I had with the RadDatePicker on some pages. And on some pages the above code wasn't injected in the js.

What's the correct way to use this new feature? Is the above the only difference this feature is gonna make and is it only for RadDatePicker?

By the way, I am adding my own "Telerik.Web.UI.Common.jQuery.js" and "Telerik.Web.UI.Common.jQueryInclude.js" in the code through RadScriptManager.

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 25 Jun 2012, 08:07 AM
Hi Sam,

The idea of the new functionality is to allow the developer to provide a different JQuery version than the build-in one. More information on the matter could be found in the following help article here. If the build-in JQuery is disabled there is not point of adding the following two scripts:

"Telerik.Web.UI.Common.jQuery.js"
"Telerik.Web.UI.Common.jQueryInclude.js"

Kind regards,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ScriptManager and StyleSheetManager
Asked by
SamVanity
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
Share this question
or