This is a migrated thread and some comments may be shown as answers.

RadTreeListView Will Not Persist Settings

2 Answers 59 Views
PersistenceFramework
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 29 Oct 2012, 02:27 AM
I have a RadTreeListView in an MVVM project which I am trying to persist with the IsolatedStorageProvider.  The RadRibbon control save and load routines use a mediator pattern with ICommand and command classes.It only partially works.  I can save and restore column width settings, but IsExpanded and IsSelected cannot be saved and restored.  Also, it will not save and restore columns that are moved.  I save the settings, move a column and then load the settings, expecting the column to return to its original position, but some or all of the data in the columns disappear.  There may be other properties that can be saved or can't be saved, but I don't know what to test for. 

2 Answers, 1 is accepted

Sort by
0
Rob
Top achievements
Rank 1
answered on 29 Oct 2012, 02:06 PM
I have a RadTreeListView in an MVVM project which I am trying to persist with the IsolatedStorageProvider.  The RadRibbon control save and load routines use a mediator pattern with ICommand and command classes.It only partially works.  I can save and restore column width settings, but IsExpanded and IsSelected cannot be saved and restored.  Also, ther is a problem with moving columns.  I  move a column, save the settings and then load the settings and the columns disappear.  There may be other properties that can be saved or can't be saved, but I don't know what to test for. 
0
Gk
Top achievements
Rank 1
answered on 29 Jan 2013, 01:49 AM
I am running into the same issue. We are using telerik version 2012.3.1017.40. 

Here is the snippet of my xaml. On restore it doesn't seem to set the IsExpanded property at all. Any idea on what could be wrong or other suggestions 

 <telerik:RadTreeListView x:Name="myTreeListView"
                                     telerik:PersistenceManager.StorageId="myTreeListView"
                                     AutoGenerateColumns="False"
                                     IsReadOnly="True"
                                     ItemsSource="{Binding TreeListSource}"
                                     SelectedItem="{Binding Selectedmyitem}"
                                     HierarchyColumnIndex="2"
                                     FilterOperatorsLoading ="myTreeListView_FilterOperatorsLoading">
                <telerik:PersistenceManager.SerializationOptions>
                    <telerik:SerializationMetadataCollection Operator="Or">
                        <telerik:PropertyNameMetadata Condition="Only"
                                                      Expression="IsSelected"
                                                      SearchType="PropertyName" />
                        <telerik:PropertyNameMetadata Condition="Only"
                                                      Expression="IsExpanded"
                                                      SearchType="PropertyName" />
                    </telerik:SerializationMetadataCollection>
                </telerik:PersistenceManager.SerializationOptions>
                <telerik:RadTreeListView.ChildTableDefinitions>
                    <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children}" />
                </telerik:RadTreeListView.ChildTableDefinitions>

Tags
PersistenceFramework
Asked by
Rob
Top achievements
Rank 1
Answers by
Rob
Top achievements
Rank 1
Gk
Top achievements
Rank 1
Share this question
or