Hello,
In my application I create XamPivotGrid and button. When I clicked button, data was binding to XamPivotGrid. At the begining everything working well. But when I clicked fourth or fifth times, I had this rezult (Myresult.jpg)
Any ideas?Thank youJaroslavas
Hi,
Could you share more details about this issue?
I would like to know what type is your data source - Flat Or XMLA.Do you have initial items generated or you use darag and drop to populate grid.When this happens when click button for biding data or when you start usnig grid (expand/ collapse, scroll ect.)
RegardsTodor
Here's another one screen.
O.K.It's my xaml:<InfragisticsPivot:XamPivotGrid Grid.Column="0" x:Name="ctrlXamPivotGrid" AllowCompactLayout="True" CellStyle="{Binding Source={StaticResource XamPivotGridCellAlignmentToRight}}" />
="1">
="ctrlXamPivotDataSelector" />
>
Data I read from database.When I clicked button I run this code:this.ctrlXamPivotGrid.DataSource = null; FlatDataSource flatDataSource = new FlatDataSource()
{
Rows =
XmlaDataSource.GenerateInitialItems("[ClientGroup], [ClientName]"),
Columns =
XmlaDataSource.GenerateInitialItems("[Data]"),
Measures =
XmlaDataSource.GenerateInitialItems("Qty, LineAmount")
};
flatDataSource.ItemsSource = _widget_data.DataTable;
flatDataSource.LoadCubesCompleted +=
new EventHandler<Infragistics.Olap.LoadCubesCompletedEventArgs>(flatDataSource_LoadCubesCompleted);
flatDataSource.CubesSettings.Add(
this.CreateSalesAnalylicsCubeMetadata());
flatDataSource.AddHierarchyDescriptor(
GeneralUtils.CreateInfragisticsXamPivotGridStringHierarchyDescriptor("ClientGroup", "Visos klientų grupės", "Klientų grupė"));
GeneralUtils.CreateInfragisticsXamPivotGridStringHierarchyDescriptor("ClientName", "Visi klientai", "Klientas"));
GeneralUtils.CreateInfragisticsXamPivotGridStringHierarchyDescriptor("CountryRegion", "Visi regionai", "Regionas"));
GeneralUtils.CreateInfragisticsXamPivotGridStringHierarchyDescriptor("City", "Visi miestai", "Miestas"));
GeneralUtils.CreateInfragisticsXamPivotGridStringHierarchyDescriptor("ItemGroup", "Visos prekių grupės", "Prekių grupė"));
GeneralUtils.CreateInfragisticsXamPivotGridStringHierarchyDescriptor("ItemName", "Visos prekės", "Prekė"));
GeneralUtils.CreateInfragisticsXamPivotGridStringHierarchyDescriptor("CurrencyCode", "Visos valiutos", "Valiuta"));
GeneralUtils.CreateInfragisticsXamPivotGridStringHierarchyDescriptor("ItemStatus", "Visos prekių kategorijos", "Prekių kategorija"));
this.ctrlXamPivotGrid.DataSource = flatDataSource;
this.ctrlXamPivotDataSelector.DataSource = flatDataSource;
This happens in both case, when I click button or when i try to expand, scroll ect.I am using v10.2 version. Maybe in this version is bug?