Hi,
I created a project that contains an XamPivotGrid that shows values coming from an xml. All worked fine. But when i put this Grid inside a popup and called this popup from another project, the grid stopped showing values. Although its ((FlatDataSource)this.pivotGrid.DataSource).ItemsSource is populated correctly. All i get now is a Grid that has "Drop Row Fields Here" and "Drop Data Items Here".
Can you please help on how should i fix this?
The button that calls the popup has the code below:
****
avgPopup.preview((DateTime)this.datepicker1.Tag, (DateTime)this.datepicker2.Tag);
avgPopup.Show();
and in the preview of the popup i call the function that gets the values from the xml and gives it to the Pivot Grid's Itemsource.
When debugging, the grid doesn't enter its CellControlAttached function anymore.
Please advise,
Thanks
Nazha
Glad to hear that you found the solution. I was trying to determine if you were connecting to your datasource and thought that the XamPivotDataSelector might be a reliable indicator for you.
Sorry for not replying before, but i managed to make it work by creating the FlatDataSource in the backcode, giving it the ItemsSource and then assigning the FlatDataSource to the PivotGrid's DataSource.
Thanks,
I hadn’t heard back from you. I was wondering if you had further questions.
Hi Nazha,
Are you defining the columns, rows, measuresand the cube metadata? Try adding a xamPivotDataSelector and see if you are are to attach to the data and drag the data to the columns and rows.
This XamPivotGrid and the XamPivotDataSelector should point to the same datasource.