2 posts, 1 answers
  1. Zed
    Zed avatar
    74 posts
    Member since:
    Apr 2008

    Posted 15 Jan 2009 Link to this post

    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
  2. Answer
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 15 Jan 2009 Link to this post

    Hey Zed,

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

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

    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?
  3. DevCraft R3 2016 release webinar banner
Back to Top