LoadSettings event

LoadSettings is a server-side event that fires after calling LoadState() method of RadPersistenceManager but before actually loading the settings so the user can remove the desired settings.

The example below demonstrates how to remove a grid settings before loading the saved state.

protected void RadPersistenceManager1_LoadSettings(object sender, PersistenceManagerSaveAllStateEventArgs e)
{
    var gridSetting = e.Settings.FindByUniqueId("RadGrid2");
    if (gridSetting != null)
    {
        e.Settings.RemoveByUniqueId("RadGrid2");
    }
}
Protected Sub RadPersistenceManager1_LoadSettings(sender As Object, e As PersistenceManagerSaveAllStateEventArgs)
    Dim gridSetting = e.Settings.FindByUniqueId("RadGrid2")
    If gridSetting IsNot Nothing Then
        e.Settings.RemoveByUniqueId("RadGrid2")
    End If
End Sub

See Also

In this article
Not finding the help you need? Improve this article