Edit this page

How to Use a jQuery Plugin

Here is how to include any jQuery based plugin to your page when you are utilizing the jQuery built-in the Telerik.Web.UI assembly.

Add script references to the Core.js, jQuery.js, jQueryInclude.js and the plugin files in the specified order shown in the sample below. (The code snippet uses the BlockUI.js file for the BlockUI plugin. Please replace it with the file of the desired plugin.)

<telerik:RadScriptManager ID="RadScriptManager1" 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" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        <asp:ScriptReference Path="~/Scripts/jquery.blockUI.js" />
    </Scripts>
</telerik:RadScriptManager>

You are now ready to use the plugin:

<script type="text/javascript">
   $(document).ready(function() {
       $('#demo3').click(function() {
           $.blockUI({ overlayCSS: { backgroundColor: '#00f'} });
           setTimeout($.unblockUI, 2000);
       });
   });
</script> 

See Also