Hi there,
I really enjoy your OLAP support for Pivot Grid. Only one thing worries me is that my ROWS are expanded automatically. I found that it is very inconviniet if you are working with large number of rows. How can I disable automatic expanding? Also, please find a picture in attachment. Thanks!
I really enjoy your OLAP support for Pivot Grid. Only one thing worries me is that my ROWS are expanded automatically. I found that it is very inconviniet if you are working with large number of rows. How can I disable automatic expanding? Also, please find a picture in attachment. Thanks!
AdomdConnectionSettings connectionSettings =
new
AdomdConnectionSettings();
connectionSettings.Cube =
"Operation"
;
connectionSettings.Database =
"Contoso_Retail"
;
connectionSettings.ConnectionString = @
"Provider=MSOLAP;Data Source=server;Initial Catalog=Contoso_Retail;"
;
AdomdGroupDescription rowGroupDescription1 =
new
AdomdGroupDescription();
rowGroupDescription1.MemberName =
"[Date].[Calendar YQMD]"
;
AdomdGroupDescription columnGropuDescription1 =
new
AdomdGroupDescription();
columnGropuDescription1.MemberName =
"[Geography].[Geography Hierarchy]"
;
AdomdAggregateDescription aggregateDescription1 =
new
AdomdAggregateDescription();
aggregateDescription1.MemberName =
"[Measures].[Sales Amount]"
;
AdomdDataProvider adomdDataProvider =
new
AdomdDataProvider();
adomdDataProvider.ConnectionSettings = connectionSettings;
adomdDataProvider.BeginInit();
adomdDataProvider.RowGroupDescriptions.Add(rowGroupDescription1);
adomdDataProvider.ColumnGroupDescriptions.Add(columnGropuDescription1);
adomdDataProvider.AggregateDescriptions.Add(aggregateDescription1);
adomdDataProvider.EndInit();
this
.radPivotGrid.DataProvider = adomdDataProvider;
this
.radPivotFieldList.DataProvider = adomdDataProvider;
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"2*"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
pivot:RadPivotGrid
x:Name
=
"radPivotGrid"
/>
<
pivot:RadPivotFieldList
x:Name
=
"radPivotFieldList"
Grid.Column
=
"1"
/>
</
Grid
>