RadPersistenceFramework & RadPivotFieldList WPF

1 Answer 20 Views
PersistenceFramework PivotGrid
atran
Top achievements
Rank 1
atran asked on 27 Jan 2024, 07:47 AM

Hi Team,

   I followed the online documentation of RadPersistenceFramework to persist the selected fields of  RadPivotFieldList.   It doesn't work!  Here's my code.

 

--xmal

                <pivot:RadPivotFieldList x:Name="pfAttributes" Grid.Row="0" telerik:PersistenceManager.StorageId="pvFields"
                                     VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="250"
                                     DataProvider="{StaticResource DataProviderKeyMetrics}" />

--save layout

            IsolatedStorageProvider isoStorageProvider = new IsolatedStorageProvider();
            isoStorageProvider.SaveToStorage();

-- load layout

            IsolatedStorageProvider isoStorageProvider = new IsolatedStorageProvider();
            isoStorageProvider.LoadFromStorage();

 

            Thanks,

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 29 Jan 2024, 09:30 AM

Hеllo Andy,

The PersistenceFramework saves only few types of data automatically. Primitive types, collections of primitive types and UIElements. Any other more complex property types should be saved manually by using custom code. This includes also the row/column and aggregate descriptions of the data provider of RadPivtoField and RadPivotFieldList.

Basically, you can implement custom custom property provider that saves the descriptions. This approach is shown in the following example.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PersistenceFramework PivotGrid
Asked by
atran
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or