How can I combine all script files for the WebDataGrid into a single script?

[Infragistics] Tony Lombardo / Saturday, February 28, 2009

This Snippet explains how to enable Script Combining.  For more details on why to use Script Combining, read Understanding Script Combining.

Note: for this to work, you must change the Version number in the Assembly attribute to match the version you're using.

<asp:ScriptManager ID="sm" runat="server">
    <CompositeScript>
        <Scripts>
            <asp:ScriptReference Name="MicrosoftAjax.js" />
            <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" />
            <asp:ScriptReference Name="Infragistics.Web.UI.Scripts.0_igControlMain.js" Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.Scripts.2_igCollections.js" Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.Scripts.3_igUIBehaviors.js" Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.Scripts.4_igEnums.js" Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.Scripts.5_igObjects.js" Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.Scripts.7_igClientStateManager.js"
                Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.Scripts.8_igCallback.js" Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.Scripts.9_igPropertyManagers.js" Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.GridControls.WebDataGrid.js.igWebDataGridBase.js"
                Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.GridControls.WebDataGrid.js.igWebDataGrid.js"
                Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.GridControls.WebDataGrid.js.igWebDataGridPaging.js"
                Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.GridControls.WebDataGrid.js.igWebDataGridActivation.js"
                Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
            <asp:ScriptReference Name="Infragistics.Web.UI.GridControls.WebDataGrid.js.igWebDataGridSorting.js"
                Assembly="Infragistics35.Web.v8.3, Version=8.3.20083.169, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" />
        </Scripts>
    </CompositeScript>
</asp:ScriptManager>