Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI/UX Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
New to Telerik UI for ASP.NET AJAX? Download free 30-day trial
In order to configure the grid for binding to an OLAP data source you need the following settings:
The PivotGrid Hierarchical Fields List (positioned on the left of the Telerik's PivotGrid control) which reorders, sorts, hides and shows fields could be enabled by setting the RadPivotGrid.EnableConfigurationPanel property to true.
<%@ Page Language="c#" AutoEventWireup="false" CodeFile="DefaultCS.aspx.cs" Async="true"Inherits="Telerik.PivotGrid.Examples.Olap.DefaultCS" %> <%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" %> <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml'> <head runat="server"> <title>Telerik ASP.NET Example</title> <link href="styles.css" rel="stylesheet" /> </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:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"> </telerik:RadAjaxLoadingPanel> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadPivotGrid1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadPivotGrid1"></telerik:AjaxUpdatedControl> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ConfiguratorPanel1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadPivotGrid1"></telerik:AjaxUpdatedControl> <telerik:AjaxUpdatedControl ControlID="ConfiguratorPanel1"></telerik:AjaxUpdatedControl> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <div class="PivotGridWrapper"> <telerik:RadPivotGrid RenderMode="Lightweight" AllowFiltering="true" AllowSorting="true" ID="RadPivotGrid1" RowTableLayout="Tabular" FieldsPopupSettings-AggregateFieldsMinCount="2" AllowPaging="true" PageSize="20" runat="server" EnableConfigurationPanel="true" EnableZoneContextMenu="true" AggregatesPosition="Rows"> <PagerStyle AlwaysVisible="true" /> <OlapSettings ProviderType="Xmla"> <AdomdConnectionSettings Cube="Adventure Works" DataBase="Adventure Works DW 2008R2" ConnectionString="Data Source=https://demos.telerik.com/service/v2/olap/msmdpump.dll;Catalog=Adventure Works DW 2008R2"></AdomdConnectionSettings> <XmlaConnectionSettings ServerAddress="https://demos.telerik.com/service/v2/olap/msmdpump.dll" Cube="Adventure Works" DataBase="Adventure Works DW 2008R2" /> </OlapSettings> <RowHeaderCellStyle Width="100px" /> <Fields> <telerik:PivotGridRowField DataField="[Product].[Category]" Caption="Category" UniqueName="Category"> </telerik:PivotGridRowField> <telerik:PivotGridColumnField DataField="[Date].[Fiscal Year]" Caption="Year" UniqueName="FiscalYear"> </telerik:PivotGridColumnField> <telerik:PivotGridAggregateField DataField="[Measures].[Internet Sales Amount]" Caption="Internet Sales Amount" UniqueName="SalesAmount"> </telerik:PivotGridAggregateField> <telerik:PivotGridAggregateField DataField="[Measures].[Internet Revenue Goal]" Caption="Revenue Goal" UniqueName="RevenueGoal"> </telerik:PivotGridAggregateField> <telerik:PivotGridAggregateField DataField="[Measures].[Internet Revenue Status]" Caption="Revenue Status" UniqueName="SalesStatus"> </telerik:PivotGridAggregateField> <telerik:PivotGridAggregateField DataField="[Measures].[Internet Revenue Trend]" Caption="Revenue Trend" UniqueName="SalesTrend"> </telerik:PivotGridAggregateField> </Fields> <ConfigurationPanelSettings Position="Left" LayoutType="OneByFour" DefaultDeferedLayoutUpdate="true" /> <ClientSettings> <Scrolling AllowVerticalScroll="false" ScrollHeight="600px" /> </ClientSettings> </telerik:RadPivotGrid> </div> </div> <telerik:ConfiguratorPanel runat="server" ID="ConfiguratorPanel1"> <Views> <qsf:View> <qsf:RadioButtonList ID="rdlProviderType" runat="server" AutoPostBack="true" Label="Set the olap data provider" OnSelectedIndexChanged="rdlProviderType_SelectedIndexChanged"> <asp:ListItem Text="Xmla" Value="Xmla" Selected="True"> </asp:ListItem> <asp:ListItem Text="Adomd" Value="Adomd"></asp:ListItem> </qsf:RadioButtonList> </qsf:View> </Views> </telerik:ConfiguratorPanel> </form> </body> </html>