Hi guys,
I have a PivotGrid with a LocalDataSourceProvider.
The Itemsource of this LocalDataSourceProvider is a ObservableCollection.
I set these Descriptions:
Telerik.Pivot.Core.PropertyGroupDescription pgdKWJahr = new Telerik.Pivot.Core.PropertyGroupDescription();
pgdKWJahr.PropertyName = "KWJahr";
pgdKWJahr.SortOrder = SortOrder.None;
Telerik.Pivot.Core.PropertyGroupDescription pgdBearbeiter = new Telerik.Pivot.Core.PropertyGroupDescription();
pgdBearbeiter.PropertyName = "Bearbeiter";
PropertyAggregateDescription padAnzahl = new PropertyAggregateDescription();
padAnzahl.PropertyName = "Anzahl";
using (ldspAnzahlÜbergabeWerk.DeferRefresh())
{
ldspAnzahlÜbergabeWerk.RowGroupDescriptions.Add(pgdKWJahr);
ldspAnzahlÜbergabeWerk.ColumnGroupDescriptions.Add(pgdBearbeiter);
ldspAnzahlÜbergabeWerk.AggregateDescriptions.Add(padAnzahl);
};
If the ObservableCollection now changes, I have to call a Refresh on the LocalDataProvider:
UcReklamationsAnzahlÜbergabeWerkVerlauf.ldspAnzahlÜbergabeWerk.Refresh();
This is not that great, but works if a value changes.The problem is, it not triggers anything if a new item should appear or an item is removed.
For better understanding:
My Collection is a list of how much things a user in each week completed. If someone now changes the weekrange, there should appear the new weeks in this range.
Is there any possibility to achieve this?
Greetings
Benedikt