Edit this page

Getting Started Overview

The below tutorial will walk you through enabling a state persistence for a page containing several Telerik controls.

  1. Drag a RadPersistenceManager from the Visual Studio Toolbox onto your web page.

  2. The Smart Tag should appear automatically. From there, choose Open PersistenceManager configuration wizard.

    persistence-framework-getting-started-st

  3. In the Configuration Wizard window select the controls which state should be persisted.

    persistence-framework-getting-started-designer

  4. Add button controls that will be used to trigger the Save and Load methods of RadPersistenceManager

<telerik:RadPersistenceManager id="RadPersistenceManager1" runat="server">
    .......
</telerik:RadPersistenceManager>

<telerik:RadButton RenderMode="Lightweight" ID="saveBtn" Text="Save State" runat="server" Width="67px" OnClick="saveBtn_Click">
</telerik:RadButton>
<telerik:RadButton RenderMode="Lightweight" ID="loadBtn" Text="Load State" runat="server" Width="67px" OnClick="loadBtn_Click">
</telerik:RadButton>
protected void loadBtn_Click(object sender, EventArgs e)
{
    RadPersistenceManager1.LoadState();
}

protected void saveBtn_Click(object sender, EventArgs e)
{
    RadPersistenceManager1.SaveState();
}
Protected Sub loadBtn_Click(sender As Object, e As EventArgs)
    RadPersistenceManager1.LoadState()
End Sub

Protected Sub saveBtn_Click(sender As Object, e As EventArgs)
    RadPersistenceManager1.SaveState()
End Sub

See Also