Skip to main content

TcxTreeListBand.OnGetStoredProperties Event

Allows you to customize a list of band properties stored in external sources.

Declaration

property OnGetStoredProperties: TcxGetStoredPropertiesEvent read; write;

Remarks

Whenever the storing process is started by the StoreToIniFile, StoreToRegistry, or StoreToStream method call, a list of the properties to store is produced. When the OnGetStoredProperties event occurs, the list is pre-populated with default band property names. These property names are specified by the BandPropertiesName global constant. You can add custom property names to the list and handle the band’s OnGetStoredPropertyValue and OnSetStoredPropertyValue events to provide property values to be saved to and restored from a data store. Make certain that items in the list uniquely identify the property names they correspond to.

EVent Parameters

Sender
Provides access to the band that raised the OnGetStoredProperties event.
AProperties
Provides access to the list of stored properties.

Code Example

The following code demonstrates how to extend the list with an item that corresponds to the Expandable property.

procedure <Form>.<Band>GetStoredProperties(Sender: TObject; AProperties: TStrings);
begin
  AProperties.Add('Expandable');
end;

Note

To customize the manner in which tree list properties are persisted, handle the tree list’s OnGetStoredProperties, OnGetStoredPropertyValue, and OnSetStoredPropertyValue events. To customize the manner in which column properties are persisted, handle a column’s OnGetStoredProperties, OnGetStoredPropertyValue, and OnSetStoredPropertyValue events.

See Also