Array Editor

From RadPHP XE2 Documentation
Jump to: navigation, search

Array editor is a multi-purpose property editor, used to edit FormValidator Rules or DBGrid Columns.

This is editor is divided in two panes, the left pane holds the items, you can create new ones, delete them or arrange them using the up and down buttons.

And the right pane shows the properties for each item of the left pane, properties on this list depend on the type of property editor. Properties are name and value pairs, and some of them can have editors, like drop downs.

For the Form Validator Rules editor, this is the list of properties:

  • Control = Control to apply the validation, shows a list of controls in the form
  • Equals = Control to match the value of the Control property
  • ErrorMessage = Error message to show when this rule is not passed
  • FieldName = Name of the field to show on the error message
  • MaxLength = Maximum length of the field
  • MaxValue = Maximum value of the field
  • MinLength = Minimum length of the field
  • MinValue = Minimum value of the field
  • Name = Name of the rule, for identification purposes
  • Required = true/false, specifies if the field is required
  • ValidationType = Type of validation to perform
  • OnValidate = Javascript event to use to perform custom validation

For the DBGrid Columns editor, this is the list of properties:

  • Alignment = Specifies the alignment used to display the cell contents
  • ButtonStyle = Specifies the button to use on a cell, bsAuto by default
  • Caption = Title at the top of the column
  • Color = Color to use on the background of the cells
  • Fieldname = Name of the dataset field to attach to this column
  • FontColor = Color to use for the text on each cell of the column
  • DropDownRows = Number of options to show at the same time on the drop down
  • PickList = List of options to show when the user edit this field
  • ReadOnly = When true, the user cannot edit the contents of this column
  • SortType = The type of sorting to use when the user clicks on the column header
  • TitleAlignment = Alignment to use for the title of the column
  • TitleColor = Color to use to draw the column title
  • Visible = Set to false to hide this column
  • Width = Width of the column in pixels
Personal tools