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

How To Enable jQuery in Sharepoint using Q1 2009 Controls

2 Answers 58 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 13 May 2009, 08:36 PM
How do I enable jQuery for Telerik controls? I am running a sharepoint site with Telerik.Web.UI dll in the GAC. And the approach on the following blog post here does not work since my DLL is in the GAC.

I can see that jQuery is automatically loaded but for some reason the following code will not run.

<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"
    <script type="text/javascript"
        (function($) { 
            $(document).ready(function() { 
 
            alert("home"); 
            // Tabs 
            var param1 = $.getURLParam("tab"); 
            $('#example').tabs({ 
                load: function(event, ui) { 
                    $('a', ui.panel).click(function() { 
                        $(ui.panel).load(this.href); 
                         
                        return false; 
                    }); 
 
                   
                } 
            }); 
        }) 
    })($telerik.$); 
 
    </script> 
</telerik:RadCodeBlock> 

If I do this, I get an error stating that it cannot find my Telerik DLL.

<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> 
 

But if I put it in the Bin folder it throws a conflict error because the DLL is in the GAC. So I am not sure what else to do here.





2 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 14 May 2009, 09:45 PM
Anyone got any ideas on this?
0
Stanimir
Telerik team
answered on 16 May 2009, 10:54 AM
Hello Robert,

Could you please confirm that you integrated your Telerik controls as in the help article Incorporating RadControls for ASP.NET Ajax in MOSS WebSites?

I tested the provided code and I was able to see the "home" alert, but then I receive an error  in the following code.
var param1 = $.getURLParam("tab");  
.

So if you do not find the help article efficient, please provide us with your web.config file and the .aspx file where you are using the telerik:RadScriptManager and telerik:RadCodeBlock.We will be glad to help you further.

Thank you.


Regards,
Stanimir
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Rotator
Asked by
Robert
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Stanimir
Telerik team
Share this question
or