New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

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

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

See Also

In this article