Example of Extended Function for JQery embeded in Telerik

1 posts, 0 answers
  1. Stephane
    Stephane avatar
    27 posts
    Member since:
    Mar 2009

    Posted 09 Jul 2009 Link to this post

    Hi,

    I post an example of extended function for JQuery embeded in Telrik RadControl.

    Before you must add in your marster page or page the declaration of JQuery like this:
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"
            <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> 

    After this, you add the reference the javascript file in the ScriptManger.
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"
            <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" /> 
                <asp:ScriptReference Path="~/jquery.json-1.3.js" /> 
            </Scripts> 
        </telerik:RadScriptManager> 
    You can donwload this script at this link

    Then remane the variable "$" in the script by "$telerik.$".

    Now you can add extended function to JQuery.


Back to Top