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

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadAjaxLoadingPanel ID="panel1" Skin="Vista" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="manager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="panel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadGrid ID="RadGrid1" Visible="true" AllowSorting="true" runat="server"
        AllowFilteringByColumn="true" EnableLinqExpressions="false" AutoGenerateColumns="false"
        OnNeedDataSource="RadGrid1_NeedDataSource">
        <MasterTableView DataKeyNames="Name" CommandItemDisplay="Top">
            <Columns>
                <telerik:GridBoundColumn HeaderText="Name" UniqueName="Name" DataField="Name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderText="Descriptioin" UniqueName="Description" DataField="Configuration.Description">
                </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn HeaderText="Minutes" DataType="System.Int32" UniqueName="Minutes" DataField="SkuAvailability.Minutes" SortExpression="SkuAvailability.Minutes">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings Selecting-AllowRowSelect="true">
        </ClientSettings>
    </telerik:RadGrid>
    <asp:Button ID="button1" Text="Sort grid!" runat="server" OnClick="button1_Click" />
    </form>
</body>
</html>
