<%@ Page Language="C#" AutoEventWireup="true" EnableViewState="true" CodeBehind="default.aspx.cs" Inherits="Demo._4_PivotGrid._default" MasterPageFile="~/Site.Master" %>

<asp:Content runat="server" ContentPlaceHolderID="MainContent">

<%--    <telerik:RadAjaxManager runat="server" ID="ajaxMgr" >
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="grid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>--%>

    <telerik:RadPivotGrid runat="server" ID="grid" 
        OnNeedDataSource="grid_NeedDataSource" AllowPaging="true"
        EnableConfigurationPanel="true">

        <ExportSettings OpenInNewWindow="true" IgnorePaging="true" FileName="SalesDetails" />

        <ConfigurationPanelSettings Position="Left" 
            EnableDragDrop="true" />

    </telerik:RadPivotGrid>

    <asp:Button runat="server" ID="exportButton" Text="Export to Excel" OnClick="exportButton_Click" />


</asp:Content>