RadStatePersister
State Persister Base Abstract class. Should be implemented for each control. ReadSettings / ApplySettings methods can be generated with T4 Template
Definition
Namespace:Telerik.Web.UI.PersistenceFramework
Assembly:Telerik.Web.UI.dll
Syntax:
public abstract class RadStatePersister : IStatePersister
Inheritance: objectRadStatePersister
Implements:
Inherited Members
Constructors
Initialize a new instance of the RadStatePersister class
public RadStatePersister()
Initialize a new instance of the RadStatePersister class using specified IStateStorageProvider and IStateSerializer to be utilized for the state persistence
public RadStatePersister(IStateStorageProvider storageProvider, IStateSerializer stateSerializer)
Fields
protected RadControlState currentState
Methods
Applys the control's settings. This method will be generated using T4 Template.
Loads the state to the provided control
public void LoadState(Control ctrl, RadControlState state)
Control that should receive the provided state
stateRadControlStateRadControlState instance that will be applied to the provided control
Implements:
This method should raise StateLoading event
Loads the state to the corresponding control using the assigned StateSerializer and StateStorageProvider
public void LoadState(Control ctrl, string key)
RadControl instance which state should be loaded
keystringThe indentifier under which the state is saved.
Implements:
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.
Saves the state of the corresponding control using the assigned StateSerializer and StateStorageProvider
Saves the state of the corresponding control using the assigned StateSerializer and StateStorageProvider
public void SaveState(Control ctrl)
RadControl instance which state should be saved
Raises StateSave event
Events
public event StateLoadEventHandler StateLoad
public event StateSaveEventHandler StateSave