Pill provider property

The pill provider property contains a reference to a Data provider or Procedure that returns the collection of pills to be shown.

K2BTools validates that the return type of the provider is a collection of the "K2BTools.Controls.Pill.Pill" SDT.

The SDT contains "Text" and "Class" fields that are analogous to the ones seen in the Conditional Pills property editor. The SDT contains no information on the condition as that should be evaluated by the provider to see if each pill should be included in the result.

When this property is used in a Trn Form pattern, it is implemented with rules instead of procedural code, allowing attributes to be used as parameters. The generated rule is conditioned so that it is active only in display and delete modes. The developer can create new rules based on the one created by K2BTools to accomodate for other scenarios.

See also: Attribute Pills, Conditional Pills property, Pill provider parameters property, Show pills only property