Conditional Pills property

This is the simplest way of starting to use pills. When editing the property a dialog like the following is shown, where the developer can define pills by providing:

  1. The condition that determines if the pill should be shown or not.
  2. The text associated with the pill.
  3. The class used to customize the pill's apprearance.

ConditionalPillsEditor
Conditional pills editor

A subroutine is created to compute the pills to be used. By default that subroutine is called in the Load (when inside a grid) or Refresh (when not inside a grid) events. If necesary the developer can manually call the subroutine to update the pills shown.

The Conditional Pills property is not available in transactions as its implementation requires the use of events and that's cumbersome in transactions.

See also: Attribute Pills, Pill provider property