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

$telerik.$

1 Answer 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zed
Top achievements
Rank 1
Zed asked on 15 Jan 2009, 09:38 AM
we are using q3 and I want to use jquery. 
1- I do not understand if I need a reference to JQuery .js file  in the <script></script> block or just the telerik jquery .js file in RadManager ScriptReference
2- the documentations says instead of using $ you must you $telerik.$ but when I do that I get an error that it is not recognized. 

I am basing everything I say on this article

1 Answer, 1 is accepted

Sort by
0
Accepted
Serrin
Top achievements
Rank 1
answered on 15 Jan 2009, 09:40 PM
Hey Zed,

Here's the code I've been using for my RadScriptManager:

        <telerik:RadScriptManager ID="RadScriptManager2" 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> 

And here is what I had to change to get jQuery working with it:

// add compiled string to label, j-display our panel for wow-factor  
$('#<%= displayLabel.ClientID %>').html(builder);  
$('#<%= Panel2.ClientID %>').show("slow");  
 
// changed the above to...  
 
// add compiled string to label, j-display our panel for wow-factor  
$telerik.$('#<%= displayLabel.ClientID %>').html(builder);  
$telerik.$('#<%= Panel2.ClientID %>').show("slow"); 

Just make sure RadScriptManager comes before any other controls on the page, etc, etc...  And you should be all set!

If this doesn't help, can you try pasting the aspx page you are having trouble with so we can troubleshoot what might be wrong?
Tags
General Discussions
Asked by
Zed
Top achievements
Rank 1
Answers by
Serrin
Top achievements
Rank 1
Share this question
or