Hi,
I download controls of telerik which the version is 2013 Q3, after binding the itemsource for RadPivotGrid, but it can't display.
Here's the XAML part for RadPivotGrid definition:
<pivot:RadPivotGrid x:Name="Pivot" HorizontalAlignment="Left" Width="800" Height="400" Grid.Column="0" Grid.Row="0" VerticalAlignment="Top">
<pivot:RadPivotGrid.DataProvider>
<pivot:LocalDataSourceProvider x:Name="LocalDataProvider" ItemsSource="{Binding PivotItemSource}" >
<pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="NAME1" />
</pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="NAME2" />
</pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:LocalDataSourceProvider.AggregateDescriptions>
<pivot:PropertyAggregateDescription PropertyName="NAME17" />
</pivot:LocalDataSourceProvider.AggregateDescriptions>
</pivot:LocalDataSourceProvider>
</pivot:RadPivotGrid.DataProvider>
</pivot:RadPivotGrid>
The c# code for the itemsource is:
public ObservableCollection<object> PivotItemSource
{
get { return this._pivotDisplayModel.PivotItemSource; }
set { this._pivotDisplayModel.PivotItemSource = value; }
}
I use this PivotItemSource to binding the itemsource in the RadGridView, the RadGridView display fine. I don't know why the RadPivotGrid can't display, anyone can answer me?
Another question, the <object> class is dynamical, does the RadPivotGrid can support binding the dynamical class as itemsource?
I download controls of telerik which the version is 2013 Q3, after binding the itemsource for RadPivotGrid, but it can't display.
Here's the XAML part for RadPivotGrid definition:
<pivot:RadPivotGrid x:Name="Pivot" HorizontalAlignment="Left" Width="800" Height="400" Grid.Column="0" Grid.Row="0" VerticalAlignment="Top">
<pivot:RadPivotGrid.DataProvider>
<pivot:LocalDataSourceProvider x:Name="LocalDataProvider" ItemsSource="{Binding PivotItemSource}" >
<pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="NAME1" />
</pivot:LocalDataSourceProvider.RowGroupDescriptions>
<pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:PropertyGroupDescription PropertyName="NAME2" />
</pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
<pivot:LocalDataSourceProvider.AggregateDescriptions>
<pivot:PropertyAggregateDescription PropertyName="NAME17" />
</pivot:LocalDataSourceProvider.AggregateDescriptions>
</pivot:LocalDataSourceProvider>
</pivot:RadPivotGrid.DataProvider>
</pivot:RadPivotGrid>
The c# code for the itemsource is:
public ObservableCollection<object> PivotItemSource
{
get { return this._pivotDisplayModel.PivotItemSource; }
set { this._pivotDisplayModel.PivotItemSource = value; }
}
I use this PivotItemSource to binding the itemsource in the RadGridView, the RadGridView display fine. I don't know why the RadPivotGrid can't display, anyone can answer me?
Another question, the <object> class is dynamical, does the RadPivotGrid can support binding the dynamical class as itemsource?