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

Using built in jQuery js with JQuery UI

1 Answer 268 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andrew Best
Top achievements
Rank 1
Andrew Best asked on 25 Mar 2010, 07:28 AM
Hi all,

I was wondering if anyone had tried to use the built in jQuery.js available in Telerik.Web.UI along with JQueryUI? At the moment I have the following to try register both on my page:

<body> 
    <form id="form1" runat="server">  
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" > 
           <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" /> 
               <asp:ScriptReference Path="~/JQuery/js/jquery-ui-1.7.2.custom.min.js" /> 
           </Scripts> 
        </telerik:RadScriptManager> 

but I get the error 'Error: 'jQuery.ui' is null or not an object' when I run the page. If I manually include an external 1.3.2 jquery .js (supplied with JQuery UI), all works fine.

Any Ideas?

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 25 Mar 2010, 09:47 AM
Hi Andrew,

You should add reference to the jQueryInclude.js too, as it is mapping the $telerik.$ to window.$ and jQuery variables. Thus your script registration should look similar to the following:

<telerik:RadScriptManager runat="server" ID="RadScriptManager1" >  
     <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" />  
         <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
         <asp:ScriptReference Path="~/JQuery/js/jquery-ui-1.7.2.custom.min.js" />  
     </Scripts>  
  </telerik:RadScriptManager>  


Best wishes,
Rosen
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Ajax
Asked by
Andrew Best
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or