<%@ Page Title="" Language="C#" AutoEventWireup="true"
CodeFile="DefaultCS.aspx.cs" Inherits="PivotGrid_Examples_ConfigurationPanel_DefaultCS" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<div class="demo-container no-bg">
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ConfiguratorPanel1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadPivotGrid1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadPivotGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadPivotGrid1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
<telerik:RadPivotGrid RenderMode="Lightweight" ID="RadPivotGrid1" runat="server" DataSourceID="SqlDataSource1" AllowFiltering="true"
AllowPaging="true" PageSize="18" ShowFilterHeaderZone="false" ShowDataHeaderZone="false" ShowRowHeaderZone="false"
ShowColumnHeaderZone="false" EnableConfigurationPanel="true" AllowSorting="true">
<Fields>
<telerik:PivotGridColumnField DataField="ShipCountry">
</telerik:PivotGridColumnField>
<telerik:PivotGridColumnField DataField="Year">
</telerik:PivotGridColumnField>
<telerik:PivotGridRowField DataField="CategoryName">
</telerik:PivotGridRowField>
<telerik:PivotGridRowField DataField="ProductName">
</telerik:PivotGridRowField>
<telerik:PivotGridAggregateField DataField="Quantity" Aggregate="Sum">
</telerik:PivotGridAggregateField>
</Fields>
<ConfigurationPanelSettings Position="Left" DefaultDeferedLayoutUpdate="true" />
</telerik:RadPivotGrid>
<asp:SqlDataSource ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
SelectCommand="SELECT [ProductID], [ProductName], [ShipCountry], [CategoryName], [Year], [Quantity] FROM [Product Reports Comparison]"
runat="server"></asp:SqlDataSource>
</div>
<telerik:ConfiguratorPanel runat="server" ID="ConfiguratorPanel1">
<Views>
<qsf:View>
<fieldset>
<legend>
Configurator panel
</legend>
</fieldset>
<ul class="fb-group">
<li>
<qsf:ComboBox AutoPostBack="true" runat="server" ID="RadComboBoxPosition"
OnSelectedIndexChanged="RadComboBoxPosition_SelectedIndexChanged"
Label="Position" Size="Narrow">
<Items>
<telerik:RadComboBoxItem Text="FieldsWindow" Value="FieldsWindow" />
<telerik:RadComboBoxItem Text="Left" Value="Left" Selected="true" />
<telerik:RadComboBoxItem Text="Top" Value="Top" />
<telerik:RadComboBoxItem Text="Right" Value="Right" />
<telerik:RadComboBoxItem Text="Bottom" Value="Bottom" />
</Items>
</qsf:ComboBox>
</li>
<li><span class="checkbox">
<asp:CheckBox ID="CheckBoxEnableDragDrop" runat="server" AutoPostBack="true"
Checked="true" Text="Drag-Drop"
OnCheckedChanged="CheckBoxEnableDragDrop_CheckedChanged" /></span>
</li>
<li><span class="checkbox">
<asp:CheckBox ID="CheckBoxEnableFieldsContextMenu" runat="server"
AutoPostBack="true" Checked="true" Text="Fields Context Menu"
OnCheckedChanged="CheckBoxEnableFieldsContextMenu_CheckedChanged" /></span>
</li>
</ul>
</qsf:View>
</Views>
</telerik:ConfiguratorPanel>
</form>
</body>
</html>