I am having Xaml pivot grid with Cube having multiple measure but unable to find method to fetch the measure list from flatdatasource initially .
Can anybody provide me the solution for this problem.
Thanks.
Hi
you can use this methods
pivotGrid.DataSource.LoadSchemaAsync(); pivotGrid.DataSource.LoadSchemaCompleted+=new EventHandler<LoadSchemaCompletedEventArgs>(DataSource_LoadSchemaCompleted);
RegardsTodor
I am still getting measures count zero. I am able to get all measures only if i drag & drop measures item in the grid
flatDataSource.Measures.Count
Hi,
If you have 11.2 version is better to listen for IOlapViewModel.Initialized event. If you have earlier versions you have to listen for IOlapViewModel.PropertyChanged event where PropertyName is "Metadata".Let me know if that works for you.Plamen.
I am getting flatDataSource.Cube as null. Basically i am loading an Excel file using stream and then binding it with pivotgrid. At that time i need all the dimensions and measures fields to show in the drop-downs.
You should look at
flatDataSource.Cube.Measures