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

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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 id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadGrid ID="RGSearchResults" runat="server" AutoGenerateColumns="False"
        AllowPaging="True" AllowFilteringByColumn="True" OnNeedDataSource="RadGrid1_NeedDataSource"
        AllowSorting="true" ShowGroupPanel="true" Skin="Default">
        <MasterTableView>
            <GroupByExpressions>
                <telerik:GridGroupByExpression>
                    <GroupByFields>
                        <telerik:GridGroupByField FieldName="CustomerID" FieldAlias="CustomerID" HeaderText="CustomerID"
                            FormatString="" />
                    </GroupByFields>
                    <SelectFields>
                        <telerik:GridGroupByField FieldName="CustomerID" FieldAlias="CustomerID" FormatString=""
                            HeaderText="CustomerID" />
                    </SelectFields>
                </telerik:GridGroupByExpression>
            </GroupByExpressions>
            <Columns>
                <telerik:GridBoundColumn HeaderText="CustomerID" DataField="CustomerID" UniqueName="CustomerID"
                    AllowFiltering="true" HeaderStyle-Width="2%" AllowSorting="true" />
                <telerik:GridBoundColumn HeaderText="Name" DataField="ContactName" UniqueName="ContactName"
                    AllowFiltering="true" AllowSorting="true" HeaderStyle-Width="20%" />
                <telerik:GridBoundColumn HeaderText="Phone" DataField="Phone" UniqueName="Phone"
                    AllowFiltering="false" AllowSorting="true" HeaderStyle-Width="25%" />
            </Columns>
        </MasterTableView>
        <ClientSettings AllowDragToGroup="true">
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        </ClientSettings>
    </telerik:RadGrid>
    <br />
    </form>
</body>
</html>
