I am having trouble getting the Q3 2013 PivotGrid (most recent release) to display data from the Pivot Grid control.
My pivot grid definition (I have no code-behind related to it) is below, along with some code I have in the PageLoad function of the page. The code from the PageLoad function works fine, but I can't seem to get anything to display in the PivotGrid. According to the SQL 2012 docs, we don't need to use msmdpump.dll anymore for remote access. Is that part of my problem?
I have the Microsoft.AnalysisServices.AdomdClient (v11) referenced and in the bin folder of the web site.
Pivot Grid code:
<telerik:RadPivotGrid ID="RadPivotGrid1" runat="server"> <PagerStyle ChangePageSizeButtonToolTip="Change Page Size" PageSizeControlType="RadComboBox"/> <OlapSettings ProviderType="Adomd"> <AdomdConnectionSettings Cube="UtilitySmart" Database="UtilitySmart" ConnectionString="Data Source=SERVERNAME; Catalog=UtilitySmart;"> </AdomdConnectionSettings> </OlapSettings> <Fields> <telerik:PivotGridRowField DataField="[Dim Utility Smart Property].[Portfolio]" Caption="Portfolio" UniqueName="Portfolio"/> <telerik:PivotGridAggregateField DataField="[Measures].[AmtPaid]" Caption="Amount Paid" UniqueName="AmtPaid"/> </Fields> <ConfigurationPanelSettings EnableOlapTreeViewLoadOnDemand="True" LayoutType="OneByFour"/> </telerik:RadPivotGrid>PageLoad code:
var conn = new AdomdConnection("Data Source=SERVERNAME;Catalog=UtilitySmart;"); conn.Open(); var cmd = new AdomdCommand("SELECT [Dim Utility Smart Property].[Portfolio].Members ON ROWS, [Measures].[Amt Paid] ON COLUMNS FROM [UtilitySmart] ", conn); var resultObj = cmd.Execute();