Hi,
I have seen some problems in using the pivot grid and I can reproduce it with the sample code coming with WPF DV 2010 v2 feature browser.
The changes I made to the sample code:
1. Add a button in FlatDataSource (XAML) xaml file which is DataSourceFlatDataXAML.xaml:
<Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition Width="Auto" /> <ColumnDefinition /> </Grid.ColumnDefinitions> <igPivot:XamPivotGrid x:Name="pivotGrid" DataSource="{StaticResource FlatDataSource}" /> <igPivot:Expander Grid.Column="1"> <igPivot:XamPivotDataSelector x:Name="dataSelector" DataSource="{StaticResource FlatDataSource}" /> </igPivot:Expander> <WrapPanel Grid.Column="2"> <Button Name="Invoke" Content="Refresh" Click="Invoke_Click"/> </WrapPanel>
2. Add Invoke_Click method in DataSourceFlatDataXAML.cs:
private void Invoke_Click(object sender, System.Windows.RoutedEventArgs e) { (this.pivotGrid.DataSource as FlatDataSource).ItemsSource = SampleDataGenerator.GenerateSales(500); }
When I run the modified app, the FlatDataSource (XAML) sample displays correctly on initial load, but not after I click "Refresh" button. The cube display is gone.
I wonder if there's a simple setting to re-initialize the state, but haven't found any in the documentation.
Please help.
Thanks,
Yu
Wish someone could look at this. I have attached my modified files here. It contains two files which can replace those in xamFeatureBrowser\Samples\PivotGrid\Basic folder in WPF DV Sample solution. You will see the behavior if you click the Refresh button.
I thought it might be a problem with the new WPF DV, so I went ahead to make same changes in Silverlight sample and got the same result.
Hi
Sorry for delay. This is a bug that is fixed in our new release.
RegardsTodor