Using built in jQuery js with JQuery UI

2 posts, 0 answers
  1. Andrew Best
    Andrew Best avatar
    2 posts
    Member since:
    May 2006

    Posted 25 Mar 2010 Link to this post

    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?
  2. Rosen
    Admin
    Rosen avatar
    3253 posts

    Posted 25 Mar 2010 Link to this post

    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.
Back to Top