<%@ Page Language="vb" AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb" Inherits="Telerik.GridExamplesCSharp.Functionality.Grouping.GroupingClientSideAPI.DefaultVB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<script type="text/javascript" src="scripts.js"></script>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
<qsf:MessageBox ID="MessageBox1" runat="server" Type="Info" Icon="Info" Style="line-height: 36px;">
Enter a value in the <b>RadAutoCompleteBox</b> which is populated with all the data from the grid in order
to expand only the selected items by using the <b>RadGrid Grouping Client-Side API</b>.
</qsf:MessageBox>
<div class="demo-container">
<telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="RadAutoCompleteBox1" runat="server"
EmptyMessage="Enter a value to search in the grid. Example: 'Sales Agent'"
DataTextField="Text"
OnClientLoad="demo.AutoCompleteLoaded"
OnClientEntryAdded="demo.EntryAdded"
OnClientEntryRemoved="demo.EntryRemoved" Width="400px">
</telerik:RadAutoCompleteBox>
<br />
<br />
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server"
AllowSorting="True" AllowPaging="True" PageSize="15" ShowGroupPanel="True" AutoGenerateColumns="true"
GridLines="None">
<GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
<PagerStyle Visible="false"></PagerStyle>
<MasterTableView GroupLoadMode="Client" TableLayout="Fixed" EnableGroupsExpandAll="true">
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldAlias="Country" FieldName="Country"></telerik:GridGroupByField>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="Country"></telerik:GridGroupByField>
</GroupByFields>
</telerik:GridGroupByExpression>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldAlias="City" FieldName="City"></telerik:GridGroupByField>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="City"></telerik:GridGroupByField>
</GroupByFields>
</telerik:GridGroupByExpression>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldAlias="ContactName" FieldName="ContactName"></telerik:GridGroupByField>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="ContactName"></telerik:GridGroupByField>
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
</MasterTableView>
<ClientSettings AllowDragToGroup="True">
<ClientEvents OnGridCreated="demo.GridCreated" />
</ClientSettings>
<GroupingSettings ShowUnGroupButton="true" />
</telerik:RadGrid>
</telerik:RadAjaxPanel>
<br />
<telerik:RadButton RenderMode="Lightweight" ID="btnPostBack" runat="server" Text="Refresh page" Width="120px"></telerik:RadButton>
</div>
<asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
ProviderName="System.Data.SqlClient" SelectCommand="SELECT Country, City, ContactName, ContactTitle FROM Customers ORDER BY Country"
runat="server"></asp:SqlDataSource>
</form>
</body>
</html>