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

Navigation Framework and NavigationCacheMode

1 Answer 50 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Paul Lewis
Top achievements
Rank 1
Paul Lewis asked on 13 Jun 2011, 11:57 AM
Hi,

I am using the navigation frmawork for SL4 and i have the NavigationCacheMode set to enabled on my pages this works fine with all my silverlight controls as they maintain their state but the htmlplaceholder reloads its page each time the page is selected instead of just keeping what was there last time.  is there a way to prevent it reloading and just use the page as it was when the user naviagted away?

1 Answer, 1 is accepted

Sort by
0
Accepted
Petar Mladenov
Telerik team
answered on 16 Jun 2011, 09:18 AM
Hello Paul Lewis,

You can try to use the KeepContentInMemory property of the RadHtmlPlaceholder set to true. Here you can find basic sample that works fine:
<telerik:RadTabControl x:Name="m_tabHtmlText"
                       Grid.Row="5"
                       Grid.Column="0"
                       Grid.ColumnSpan="5"
                       Margin="5"
                       Visibility="Visible">
    <telerik:RadTabItem Header="HTML" >
        <telerik:RadTabItem.Content>
            <StackPanel x:Name="m_placeholderPanel">
                <telerik:RadHtmlPlaceholder x:Name="m_placeholderHTML"
                                            Height="400"                                                     
                                            KeepContentInMemory="true"
                                            SourceUrl="http://www.google.com"/>
            </StackPanel>
        </telerik:RadTabItem.Content>
    </telerik:RadTabItem>
     
    <telerik:RadTabItem Header="Text">
        <telerik:RadTabItem.Content>
            <TextBox x:Name="text"
                     MinHeight="400"
                     MaxHeight="400"
                     VerticalScrollBarVisibility="Auto" />
        </telerik:RadTabItem.Content>
    </telerik:RadTabItem>
</telerik:RadTabControl>                
Please let us know if this helped you.

Kind regards,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
HTMLPlaceHolder
Asked by
Paul Lewis
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or