RadTreeListView Will Not Persist Settings

3 posts, 0 answers
  1. Rob
    Rob avatar
    12 posts
    Member since:
    Apr 2012

    Posted 28 Oct 2012 Link to this post

    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. Rob
    Rob avatar
    12 posts
    Member since:
    Apr 2012

    Posted 29 Oct 2012 Link to this post

    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. 
  3. UI for WPF is Visual Studio 2017 Ready
  4. Gk
    Gk avatar
    1 posts
    Member since:
    May 2012

    Posted 28 Jan 2013 Link to this post

    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>

Back to Top