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

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
        DefaultLoadingPanelID="RadAjaxLoadingPanel1" 
        onajaxrequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxManager1" />
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        <asp:Label ID="Label1" runat="server" Text="First loading..."></asp:Label>
    </telerik:RadAjaxLoadingPanel>
            <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
                AllowMultiRowSelection="true" AllowMultiRowEdit="true" AllowSorting="True" DataSourceID="SqlDataSource1"
                GridLines="None" PageSize="5" ShowGroupPanel="true" OnUpdateCommand="RadGrid1_UpdateCommand"
                OnCustomAggregate="RadGrid1_CustomAggregate" ShowFooter="true">
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="SqlDataSource1" GroupLoadMode="Server">
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditColumn">
                        </telerik:GridEditCommandColumn>
                        <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" ReadOnly="True"
                            SortExpression="Id" UniqueName="Id">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TinyIntValue" DataType="System.Byte" HeaderText="TinyIntValue"
                            SortExpression="TinyIntValue" UniqueName="TinyIntValue" Aggregate="Custom">
                        </telerik:GridBoundColumn>
                        <telerik:GridDateTimeColumn UniqueName="GridDateTimeColumn1" DataField="TestDate"
                            HeaderText="TestDate" PickerType="DatePicker">
                        </telerik:GridDateTimeColumn>
                        <telerik:GridCheckBoxColumn UniqueName="TestBit" DataField="TestBit" DataType="System.Boolean"
                            HeaderText="TestBit">
                        </telerik:GridCheckBoxColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowDragToGroup="true">
                </ClientSettings>
            </telerik:RadGrid>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT * FROM [TinyIntTest]"></asp:SqlDataSource>
    </form>
</body>
</html>
