RadDatePicker cosmetic problems when additional jQuery used

2 posts, 0 answers
  1. Ty
    Ty avatar
    2 posts
    Member since:
    Jan 2009

    Posted 22 Sep 2009 Link to this post

    I have a RadDatePicker I am using on a child page.  The master page includes a jQuery.js file - which wreaks havoc on how many RadControls work and appears to disregard any skin set for the RadDatePicker.

    <script type="text/javascript" src="/js/jquery132.js"></script> 

    Commenting out the jQuery.js line fixes the RadControls problem, but then I can't use additional jQuery, I get a javascript error that basically tells me that $ is undefined.

    From other articles/posts it would appear that the $ is invalid as far as the RadControls are concerned, as it uses a different variable to avoid conflicts.  It appears to be conflicting for me though.  Any ideas?

    I have my RadScriptManager set up as follows:
    <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" /> 
        </Scripts> 
    </telerik:RadScriptManager> 

    I have tried the $ assignment as follows, to no avail:
    <script type="text/javascript"
    window.$ = $telerik.$; 
    </script> 



  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2289 posts

    Posted 28 Sep 2009 Link to this post

    Hello Ty,

    I have just tested described scenario and I do not see any conflicts by including external jQuery and jQuery that comes with RadControls for ASP.NET AJAX. Please make sure that there are no javascript errors on the page.
    For your convenience I am attaching sample application demonstrating scenario similar to what you have described.

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