Skip to main content

TcxFilterItem.PropertiesClass Property

Specifies the class of the editor used to edit a value the item data is compared to.

Declaration

property PropertiesClass: TcxCustomEditPropertiesClass read; write;

Property Value

Type
TcxCustomEditPropertiesClass

Remarks

Use the PropertiesClass property to assign a particular editor to edit a value with which to compare. To assign an editor, set the PropertiesClass to a TcxCustomEditProperties class descendant, such as TcxComboBoxProperties.

Once PropertiesClass is set, the Properties member provides access to available editor settings.

The following code shows how to specify the calculator editor to edit data of the first item. The QuickClose property is set to True to enable closing the calculator dropdown window when a user presses the ‘=’ keyboard key.

cxDBFilterControl1.Items[0].PropertiesClass := TcxCalcEditProperties;
  TcxCalcEditProperties(cxDBFilterControl1.Items[0].Properties).QuickClose := True;

The RepositoryItem property also allows you to assign an editor for the item. If an editor is assigned via RepositoryItem, then PropertiesClass and Properties are ignored.

See the GetProperties method to obtain a reference to edit properties specified by the RepositoryItem or PropertiesClass attribute. If neither of them is set, the method retrieves properties from the default editor applied for the item.

See Also