Hi,
I can't display RadPivotFieldList associated with RadPivotGrid : the grid is OK, but there is nothing in RadPivotFieldList.
Here's the XAML part for LocalDataProvider definition:
<pivot:LocalDataSourceProvider x:Key="LocalDataProvider">
<pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="SubjectCode" />
</pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="ProductCode" />
</pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:LocalDataSourceProvider.AggregateDescriptions>
<pivot:PropertyAggregateDescription PropertyName="Score" AggregateFunction="Average" />
</pivot:LocalDataSourceProvider.AggregateDescriptions>
</pivot:LocalDataSourceProvider>
And the XAML part for RadPivotGrid and RadPivotFieldList :
<pivot:RadPivotGrid x:Name="Pivot" Grid.Column="0" DataProvider="{StaticResource LocalDataProvider}" />
<pivot:RadPivotFieldList x:Name="FieldList" Grid.Column="1" DataProvider="{StaticResource LocalDataProvider}" />
And C# view constructor code (App.CurrentSeance.ListData being an ObservableCollection)
InitializeComponent();
(this.Resources["LocalDataProvider"] as LocalDataSourceProvider).ItemsSource = App.CurrentSeance.ListData;
Any idea ?
Sincerely yours,
Michel
I can't display RadPivotFieldList associated with RadPivotGrid : the grid is OK, but there is nothing in RadPivotFieldList.
Here's the XAML part for LocalDataProvider definition:
<pivot:LocalDataSourceProvider x:Key="LocalDataProvider">
<pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="SubjectCode" />
</pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="ProductCode" />
</pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:LocalDataSourceProvider.AggregateDescriptions>
<pivot:PropertyAggregateDescription PropertyName="Score" AggregateFunction="Average" />
</pivot:LocalDataSourceProvider.AggregateDescriptions>
</pivot:LocalDataSourceProvider>
And the XAML part for RadPivotGrid and RadPivotFieldList :
<pivot:RadPivotGrid x:Name="Pivot" Grid.Column="0" DataProvider="{StaticResource LocalDataProvider}" />
<pivot:RadPivotFieldList x:Name="FieldList" Grid.Column="1" DataProvider="{StaticResource LocalDataProvider}" />
And C# view constructor code (App.CurrentSeance.ListData being an ObservableCollection)
InitializeComponent();
(this.Resources["LocalDataProvider"] as LocalDataSourceProvider).ItemsSource = App.CurrentSeance.ListData;
Any idea ?
Sincerely yours,
Michel