Home Reference Source
public class | source

PreferencePersistenceEvent

Extends:

TypedObjectBaseEvent → PreferencePersistenceEvent

Dispatched when the grids' preferencePersistenceMode='server' and: 1) The Grid needs to retrieve the preference data from the server 2) The Grid needs to persist the preference data to the server 3) The Grid needs to clear out its preference data.

Constructor Summary

Public Constructor
public

constructor(type: *, preferenceKey: *, preferenceXml: *, bubbles: *, cancelable: *)

Member Summary

Public Members
public

If you want to save any custom data into the preferences string, populate this property in the savePreferences event.

public

Whether the preference to add is the default.

public

A key that uniquely identifies the grid whose preference data needs to be persisted on the server

public

Name of the preference to persist.

public

An xml string that contains all the preference data for this grid.

Method Summary

Public Methods
public

Inherited Summary

From class TypedObject
public

typeCache: {}

public
public

Returns a list of strings that represent the object hierarchy for this object.

public

Returns true if the class name to check is in the list of class names defined for this class.

From class BaseEvent
public

Ignored property

public

Whether or not this event can be cancelled.

public

Has the default for this event been prevented

public

Type of this event.

public
public

Has the default for this event been prevented.

public

If this event is cancelable, then the default prevented flag is set to true.

public

If this event is cancelable, then the default prevented flag is set to true.

Public Constructors

public constructor(type: *, preferenceKey: *, preferenceXml: *, bubbles: *, cancelable: *) source

Override:

BaseEvent#constructor

Params:

NameTypeAttributeDescription
type *
preferenceKey *
preferenceXml *
bubbles *
cancelable *

Public Members

public customData: * source

If you want to save any custom data into the preferences string, populate this property in the savePreferences event. (This event will be dispatched JUST before saving the preferences. And it will be available to you in the loadPreferences event. (This event is called right after the preferences are applied to the IPersistable)

Properties:

NameTypeAttributeDescription
customData *

public isDefault: * source

Whether the preference to add is the default. Added in 2.9 to support multiple preferences

Properties:

NameTypeAttributeDescription
isDefault *

public preferenceKey: * source

A key that uniquely identifies the grid whose preference data needs to be persisted on the server

Properties:

NameTypeAttributeDescription
preferenceKey *

public preferenceName: * source

Name of the preference to persist. Added in 2.9 to support multiple preferences

Properties:

NameTypeAttributeDescription
preferenceName *

public preferenceXml: * source

An xml string that contains all the preference data for this grid.

Properties:

NameTypeAttributeDescription
preferenceXml *

Public Methods

public getClassNames(): string[] source

Returns a list of strings that represent the object hierarchy for this object.

Override:

BaseEvent#getClassNames

Return:

string[]