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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<html>
<head>
    <title>Test</title>
</head>
<body>
	<form id="Form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="radScriptManager1">
    </telerik:RadScriptManager>
    <asp:UpdatePanel ID="upnlLeaveHistory" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <telerik:RadGrid runat="server" ID="RadGrid1" CellSpacing="0" 
            DataSourceID="SqlDataSource1" GridLines="None" >
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="ProductID" 
                DataSourceID="SqlDataSource1">
                <CommandItemSettings ExportToPdfText="Export to PDF" />
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" 
                    Visible="True">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" 
                    Visible="True">
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn DataField="ProductID">
                    <HeaderTemplate>
                        <asp:LinkButton ID="HeaderRgLeaveHistory_Remarks" CommandName="Sort" CommandArgument="ProductID" Text="ProductID" runat="server"/>
                     </HeaderTemplate>
                     <ItemTemplate>
                          <asp:Label ID="lblItemRgLeaveHistory_Remarks" runat="server" Text='<%#Eval("ProductID")%>' />
                      </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT [ProductID] FROM [Alphabetical list of products]">
        </asp:SqlDataSource>
    </ContentTemplate>
    </asp:UpdatePanel>
</form>
</body>
</html>

