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

RadDatePicker cosmetic problems when additional jQuery used

1 Answer 43 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Ty
Top achievements
Rank 1
Ty asked on 22 Sep 2009, 10:15 PM
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> 



1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 28 Sep 2009, 06:59 AM
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.
Tags
Calendar
Asked by
Ty
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or