New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

State Persister Interface that should be implemented by each control's StatePerister class. ReadSettings / ApplySettings methods can be generated using T4 Template.

Definition

Namespace:Telerik.Web.UI.PersistenceFramework

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public interface IStatePersister

Derived Classes: RadStatePersister

Methods

Applies the control's settings. This method will be generated using T4 Template.

C#
void ApplySettings(Control c)
Parameters:cControl

Control that should receive the provided state

Loads the state to the provided control

C#
void LoadState(Control c, RadControlState state)
Parameters:cControl

Control that should receive the provided state

stateRadControlState

RadControlState instance that will be applied to the provided control

This method should raise StateLoading event

Loads the state to the corresponding control using the assigned StateSerializer and StateStorageProvider

C#
void LoadState(Control c, string key)
Parameters:cControl

Control that should receive the provided state

keystring

The identifier under which the state is saved.

This method should be usable only when StateSerializer and StateStorageProvider are assigned to the StatePersister.

This method should raise StateLoading event

Reads the control's settings. This method will be generated using T4 Template.

C#
void ReadSettings(Control c)
Parameters:cControl

RadControl instance which state should be saved

Saves the state of the corresponding control using the assigned StateSerializer and StateStorageProvider

C#
void SaveState(Control c, string key)
Parameters:cControl

RadControl instance which state should be saved

keystring

The identifier under which the state will be saved.

This method should raise StateSaving event