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

A daft question?

2 Answers 65 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 20 Jan 2010, 11:48 AM
Forgive me if this is something I should know.

I've just used the VSX for the first time to create a page and I note that the markup generated includes this ...
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"
  <Scripts> 
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
  </Scripts> 
</telerik:RadScriptManager> 
 

Now, I've created more than a few pages with telerik controls on and have always done so just adding an empty RadScriptManager to the page. What are the advantages of adding the 2 script references (or the disadvantages of not doing so)?

--
Stuart



2 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 20 Jan 2010, 11:55 AM
Hello Stuart,

The scripts, declared in the RadScriptManager when creating a RadForm are added when the "Use jQuery Support" checkbox is checked. The "jQuery support" would mean that even if you don't add any Telerik control to the page you would benefit scripting with the embedded jQuery resources in the Telerik.Web.UI assembly.

I hope this helps.

Kind regards,
Erjan Gavalji
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
Stuart Hemming
Top achievements
Rank 2
answered on 20 Jan 2010, 12:01 PM
Blimey Erjan,

You're quick off the mark.

Thanks for the info.

--
Stuart
Tags
Installer and VS Extensions
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Erjan Gavalji
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or