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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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">
</head>
<body class="BODY">
    <form id="mainForm" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
    <telerik:RadGrid ID="myGrid" runat="server" OnNeedDataSource="myGrid_NeedDataSource"
        AllowFilteringByColumn="True" AllowSorting="True" AllowPaging="true" GridLines="None"
        EnableLinqExpressions="false" AutoGenerateColumns="false" EnableHeaderContextMenu="true"
        EnableHeaderContextFilterMenu="true" enableajax="True">
        <ClientSettings EnableRowHoverStyle="true" Resizing-AllowColumnResize="True">
            <Resizing AllowColumnResize="true" />
            <Selecting AllowRowSelect="true" />
        </ClientSettings>
        <PagerStyle Mode="NextPrev" PagerTextFormat="" BackColor="Transparent"></PagerStyle>
        <MasterTableView IsFilterItemExpanded="false" HierarchyLoadMode="ServerOnDemand">
            <Columns>
                <telerik:GridBoundColumn DataField="IncentivePayableId" HeaderText="IncentivePayableId"
                    ReadOnly="True" HeaderStyle-Width="50px" Visible="false" />
                <telerik:GridTemplateColumn DataField="Now" GroupByExpression="Now Group by Now"
                    UniqueName="Now" InitializeTemplatesFirst="false" HeaderStyle-Width="100" HeaderText="Now">
                    <HeaderTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="Now" CommandName="Sort"
                                        Text="Now"></asp:LinkButton>
                                </td>
                                <td>
                                    <img src="../../Images/arrow_down.png" style="margin-top: 5px; margin-left: 5px;
                                        cursor: pointer" onclick='ShowColumnHeaderMenu(event,"Now")' alt="Show context menu" />
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" Text="test"></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn DataField="Before" GroupByExpression="Before Group by Before"
                    UniqueName="Before" InitializeTemplatesFirst="false" HeaderStyle-Width="100"
                    HeaderText="Before">
                    <HeaderTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="Before" CommandName="Sort"
                                        Text="Before"></asp:LinkButton>
                                </td>
                                <td>
                                    <img src="../../Images/arrow_down.png" style="margin-top: 5px; margin-left: 5px;
                                        cursor: pointer" onclick='ShowColumnHeaderMenu(event,"Before")' alt="Show context menu" />
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text="test"></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn DataField="Difference" GroupByExpression="Difference Group by Difference"
                    UniqueName="Difference" InitializeTemplatesFirst="false" HeaderStyle-Width="100"
                    HeaderText="Difference">
                    <HeaderTemplate>
                        <table>
                            <tr>
                                <td>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument="Difference" CommandName="Sort"
                                        Text="Difference"></asp:LinkButton>
                                </td>
                                <td>
                                    <img src="../../Images/arrow_down.png" style="margin-top: 5px; margin-left: 5px;
                                        cursor: pointer" onclick='ShowColumnHeaderMenu(event,"Difference")' alt="Show context menu" />
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text="test"></asp:Label>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
            <RowIndicatorColumn>
                <HeaderStyle Width="25px" Height="15px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
        </MasterTableView>
        <HeaderStyle Height="25px" />
        <ItemStyle Wrap="false" CssClass="Row50" />
        <AlternatingItemStyle Wrap="false" CssClass="Row50" />
        <SelectedItemStyle />
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
    </form>
</body>
</html>
