Hide

YetaWF Documentation

Display
Print

Decimal Component

Decimal (Display)

Displays the model formatted as a decimal number with 2 fractional digits. If the model is null, nothing is rendered.

Model Type: decimal?

[Category("General"), Caption("Sales Tax - Rate"), Description("The sales tax rate (in percent) collected on purchases")]
[UIHint("Decimal"), ReadOnly]
public decimal SalesTaxRate { get; set; }

Decimal (Edit)

Allows entry of a decimal number with 2 fractional digits.

Model Type: decimal?

The RangeAttribute can be used to define the lowest and highest allowable values.

[Category("General"), Caption("Sales Tax - Rate"), Description("The sales tax rate (in percent) collected on purchases")]
[UIHint("Decimal"), Range(0.0, 100.0), Required]
public decimal SalesTaxRate { get; set; }