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

<%@ 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">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="True">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="RadInputManager1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Button2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Button3">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadInputManager ID="RadInputManager1" runat="server" Skin="Black">
    </telerik:RadInputManager>
    <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
        AllowMultiRowSelection="true" AllowMultiRowEdit="true" AllowSorting="True" DataSourceID="SqlDataSource1"
        GridLines="None" PageSize="5" ShowGroupPanel="true" ShowFooter="true">
        <PagerStyle Mode="NextPrev" />
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="SqlDataSource1"
            EnableHeaderContextMenu="true" 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">
                </telerik:GridBoundColumn>
                <telerik:GridDateTimeColumn UniqueName="GridDateTimeColumn1" DataField="TestDate"
                    HeaderText="TestDate" PickerType="DatePicker">
                </telerik:GridDateTimeColumn>
                <telerik:GridBoundColumn DataField="TinyIntValue" DataType="System.Byte" HeaderText="TinyIntValue2"
                    SortExpression="TinyIntValue" UniqueName="TinyIntValue2" Aggregate="Count">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <FilterMenu EnableTheming="True">
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
        </FilterMenu>
        <ClientSettings AllowDragToGroup="True" EnablePostBackOnRowClick="false">
        </ClientSettings>
    </telerik:RadGrid>
    <br />
    <asp:Button ID="Button2" runat="server" Text="Change GroupSettings" OnClick="Button2_Click" />
    <asp:Button ID="Button3" runat="server" Text="Change GroupSettings" OnClick="Button3_Click" />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
        SelectCommand="SELECT * FROM [TinyIntTest]"></asp:SqlDataSource>
    </form>
</body>
</html>
