Last Updated: 29 Aug 2016 13:40 by ADMIN
Alex Dybenko
Created on: 05 Jul 2016 14:15
Category: PivotGrid
Type: Feature Request
IMPROVE. RadPivotGrid - extend the Save/Load API to always serialize the FilterDescriptors, ColumnGroupDescriptions, RowGroupDescriptions, AggregateDescriptions, collections even if they are empty
You save 2 config, one with Report filter (1), one without (2), if you load first (1), if puts report filter correctly, but if you load then (2) - report filter still as on (1).
Also, if you load config with ShowFilterArea=true - it  stays visible if you load another config with ShowFilterArea=true 

Hello Alex,

While investigating the reported behavior I managed to isolate an issue in the Save/Load API of RadPivotGrid regarding the ShowFilterArea property. The default value of this property is not serialized, however this can be altered by adding a serialization meta data to the XmlSerializationInfo instance of the pivot. In this scenario the engine did not respect the added new data. Here is the feedback item and you can subscribe to it: The item is already in development and a permanent fix will be available with our next release.

Regarding the empty filter descriptions, in order to serialize them one should work with a DataProviderSerializer class. Currently our engine does not save the empty filters and we will consider modifying it so that even if the collection is empty it also be serialized.

I am attaching to this post a sample project with which you would be able to achieve both of your tasks. Please note that the serialization API of the LocalDataSourceProvider uses the DataContract and you would need to use our .NET 4.0 assemblies.

I hope this helps. In case you need additional assistance please write here or open a support ticket.

Posted on: 21 Jul 2016 13:06
Hi Alex,

I am glad that it is working well in your project. Indeed, following the same approach as suggested in the attached project you can create a serializer for the QueryableDataProvider

Alex Dybenko
Posted on: 21 Jul 2016 09:22
Thanks Hristo, 
i added 2 ProviderSerializer classes for my project, for local data and quaryble one, works great!