RadDocking looses state of contained controls such as RadGridView

2 posts, 0 answers
  1. Steve Hulse
    Steve Hulse avatar
    2 posts
    Member since:
    Apr 2010

    Posted 13 Oct 2011 Link to this post

    I have an application that uses RadDocking to host a RadGridView control.  When the application initially loads the grid's databinding, sorting, filtering, grouping, etc. work fine.  However, if the pane containing the RadGridView control is pinned, unpinned, or floated all user customizations to the grid such as sorting and filtering are lost.  It appears that the the grid is reinstantiated when the user performs any of these actions.  I have set IsContentPreserved to True in the RadPaneGroup that hosts the RadGridView, but the grid's state is still not preserved.  Is there a way to preserve state in this scenario?




    <telerik:RadDocking HasDocumentHost="False" Grid.Row="2" PreviewUnpin="RadDocking_PreviewUnpin">
        <telerik:RadSplitContainer InitialPosition="DockedBottom">
            <telerik:RadPaneGroup IsContentPreserved="True">
                        <telerik:RadGridView AutoGenerateColumns="False" SelectionMode="Multiple" RowIndicatorVisibility="Collapsed" ItemsSource="{Binding}" IsReadOnly="True" SelectionUnit="Cell">
                                <telerik:GridViewSelectColumn Width="20"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=InventoryDate, Mode=OneWay}" Header="Inventory Date" DataFormatString="{}{0:MM/dd/yyyy}"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=BridgeNumber, Mode=OneWay}" Header="Bridge #"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CreatedBy, Mode=OneWay}" Header="Created By"/>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=CreatedDate, Mode=OneWay}" Header="Created Date" DataFormatString="{}{0:MM/dd/yyyy}"/>

    Thanks for any suggestions.



  2. Steve Hulse
    Steve Hulse avatar
    2 posts
    Member since:
    Apr 2010
Back to Top