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

<%@ 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:RadGrid ID="RadGrid1" AllowSorting="True" OnNeedDataSource="RadGrid1_NeedDataSource"
        ShowFooter="True" AllowPaging="True" runat="server" Width="100%" AllowMultiRowSelection="False"
        ShowGroupPanel="True" Skin="Sitefinity" ExportSettings-ExportOnlyData="true"
        ExportSettings-IgnorePaging="true" ExportSettings-OpenInNewWindow="true" GridLines="none"
        AutoGenerateColumns="true" ShowStatusBar="true">
        <ExportSettings HideStructureColumns="True" ExportOnlyData="True" IgnorePaging="True"
            OpenInNewWindow="True" />
        <MasterTableView DataMember="DetailReport" CommandItemDisplay="Top" DataKeyNames="CustomerID"
            Width="100%" HeaderStyle-Width="150px" TableLayout="Auto" ShowGroupFooter="true">
            <GroupHeaderItemStyle CssClass="rtl" />
            <GroupByExpressions>
                <telerik:GridGroupByExpression>
                    <SelectFields>
                        <telerik:GridGroupByField FieldName="ContactName" HeaderText="Agent Name" FieldAlias="ContactName" />
                    </SelectFields>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="ContactName" FieldAlias="ContactName" />
                    </GroupByFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>
            <CommandItemSettings ShowExportToWordButton="True" ShowExportToExcelButton="True"
                ShowExportToCsvButton="True" ShowExportToPdfButton="True" ShowAddNewRecordButton="False"
                ExportToPdfText="Export to Pdf" />
            <HeaderStyle HorizontalAlign="Center" />
        </MasterTableView>
        <ClientSettings AllowDragToGroup="True">
            <Selecting AllowRowSelect="True" />
            <ClientMessages DragToGroupOrReorder="Drag header to group" />
            <Scrolling AllowScroll="True" UseStaticHeaders="true" SaveScrollPosition="True" FrozenColumnsCount="2" />
        </ClientSettings>
        <GroupingSettings ShowUnGroupButton="True" />
    </telerik:RadGrid>
    </form>
</body>
</html>
