<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                <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" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadAjaxLoadingPanel ID="ralp1" runat="server" Skin="Office2010Black">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxPanel ID="rap1" runat="server" Skin="Office2010Black">
            <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource"
              Skin="Office2010Black" AutoGenerateColumns="true" Width="500px">
                <ClientSettings AllowColumnsReorder="true" Resizing-AllowColumnResize="true">
                    <ClientEvents OnColumnResized="RadGridConfigurationChangedColumn" OnColumnShown="RadGridConfigurationChangedColumn"
                        OnColumnHidden="RadGridConfigurationChangedColumn" />
                </ClientSettings>
                <MasterTableView Width="100%" CommandItemDisplay="Top" EnableHeaderContextMenu="true"
                    Name="Master">
                </MasterTableView>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
        <script type="text/javascript">
            function RadGridConfigurationChangedColumn(sender, eventArgs) {
                var column = eventArgs.get_gridColumn();
                RadGridConfigurationChangedCommand(column.get_owner());
            }

            function RadGridConfigurationChangedCommand(tableView) {

                if (tableView != null) {
                    tableView.fireCommand("RadGridConfigurationChanged", tableView.get_name());
                }

            }
 

        </script>
    </div>
    </form>
</body>
</html>
