Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Collapse]eXpressApp Framework
 [Expand]Fundamentals
 [Expand]Getting Started
 [Collapse]Concepts
  [Expand]Application Solution Components
  [Collapse]Business Model Design
    Business Model Design Basics
    Built-in Business Classes for Most Popular Scenarios
   [Expand]Business Model Design with Entity Framework
   [Expand]Business Model Design with XPO
    Non-Persistent Objects
    PropertyChanged Event in Business Classes
   [Collapse]Data Types Supported by built-in Editors
     Key Properties
    [Expand]String Properties
    [Collapse]Numeric Properties
      Numeric Properties in XPO
      Numeric Properties in Entity Framework
      Numeric Properties in Domain Components
    [Expand]Date and Time Properties
    [Expand]Boolean Properties
    [Expand]BLOB Image Properties
    [Expand]Collection Properties
    [Expand]Reference (Foreign Key, Complex Type) Properties
    [Expand]File Attachment Properties
    [Expand]Type Properties
    [Expand]Enumeration Properties
    [Expand]Criteria Properties
    [Expand]Color Properties
     Geolocation Properties
     Miscellaneous Property Types
    Mapping Complex Types to the Database
   [Expand]Types Info Subsystem
    Connect an XAF Application to a Database Provider
    Data Annotations in Data Model
    Create and Update the Application's Database
  [Expand]Application Model
  [Expand]UI Construction
  [Expand]Extend Functionality
  [Expand]Data Manipulation and Business Logic
  [Expand]Security System
  [Expand]Localization
  [Expand]System Module
  [Expand]Extra Modules
  [Expand]Debugging and Error Handling
  [Expand]Filtering
  [Expand]Application Life Cycle
 [Expand]Design-Time Features
 [Expand]Functional Testing
 [Expand]Deployment
 [Expand]Task-Based Help
 [Expand]Frequently Asked Questions
 [Expand]API Reference
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Numeric Properties

Different formatting is used in a WinForms and ASP.NET UI depending on the type of a numeric property (long, int, decimal, etc., including the same Nullable types).

WinForms

ASP.NET

In Mobile applications, all numeric properties in a UI are displayed in the same formatting style.

Mobile

Note

Refer to the Property Editors | Numeric Properties section in the Feature Center demo installed with XAF to see Numeric Property Editors in action. By default, the Feature Center demo is installed in %PUBLIC%\Documents\DevExpress Demos 17.1\Components\eXpressApp Framework\FeatureCenter. The ASP.NET version of this demo is available online at http://demos.devexpress.com/XAF/FeatureCenter/.

Expanded Examples

Expanded WinForms Property Editors for Numeric Properties

Each WinForms Property Editor has a control that displays a corresponding property in a Detail View, and a repository item that displays a property in a List Editor that supports in-place editing. The table below shows both the control and repository item.

  • BytePropertyEditor

    Control: IntegerEdit - a descendant of the XtraEditors Library's SpinEdit editor.

    Repository Item: RepositoryItemIntegerEdit - a descendant of the XtraEditors Library's RepositoryItemSpinEdit item.

    Description:

    Used for byte type properties by default.

    Represents the IntegerPropertyEditor class descendant. If the repository item's MaxValue property is set to 0 or a value that is greater than the Byte.MaxValue value, it is set to the Byte.MaxValue value. If the repository item's MinValue property is set to 0 or a value that is less than the Byte.MinValue value, it is set to the Byte.MinValue value.

  • DecimalPropertyEditor

    Control: DecimalEdit - a descendant of the SingleEdit editor used by the FloatPropertyEditor.

    Repository Item: RepositoryItemDecimalEdit - a RepositoryItemSingleEdit item descendant used by the FloatPropertyEditor.

    Description:

    Used for decimal type properties by default.

    The RepositoryItemSingleEdit class is inherited to store and display values using the "C" Numeric edit mask when the Property Editor's EditMask is not specified.

  • DoublePropertyEditor

    Control: DoubleEdit - a SingleEdit editor descendant used by the FloatPropertyEditor.

    Repository Item: RepositoryItemDoubleEdit - a RepositoryItemSingleEdit item descendant used by the FloatPropertyEditor.

    Description:

    Used for double type properties by default.

  • FloatPropertyEditor

    Control: SingleEdit - a IntegerEdit editor descendant used by the IntegerPropertyEditor.

    Repository Item: RepositoryItemSingleEdit - a RepositoryItemIntegerEdit item descendant used by the IntegerPropertyEditor.

    Description:

    Used for float type properties by default.

    The RepositoryItemIntegerEdit class is inherited to allow the display of float values.

  • IntegerPropertyEditor

    Control: IntegerEdit - a descendant of the XtraEditors Library's SpinEdit editor.

    Repository Item: RepositoryItemIntegerEdit - a descendant of the XtraEditors Library's RepositoryItemSpinEdit item.

    Description:

    Used for Int32 type properties by default.

    IntegerPropertyEditor has the EditMask property. This property is set to the value of the Views | <DetailView> | Items | <PropertyEditor> node's IModelCommonMemberViewItem.EditMask property by default. When assigning a value to this property (or the EditMask attribute directly in code), use the syntax of the Numeric mask type. In this instance, the specified mask is applied to the property value displayed by the Property Editor. Refer to the Mask Editors Overview | Mask Types topic for more details.

  • LongPropertyEditor

    Control: IntegerEdit - a descendant of the XtraEditors Library's SpinEdit editor.

    Repository Item: RepositoryItemIntegerEdit - a descendant of the XtraEditors Library's RepositoryItemSpinEdit item.

    Description:

    Used for Int64 type properties by default.

    Represents the IntegerPropertyEditor class descendant. If the repository item's MaxValue property is set to 0 or a value that is greater than the Long.MaxValue value, it is set to the Long.MaxValue value. If the repository item's MinValue property is set to 0 or a value that is less than the Long.MinValue value, it is set to the Long.MinValue value.

Expanded ASP.NET Property Editors for Numeric Properties

Each ASP.NET Property Editor has controls that display a property in a Detail View's View mode and in an Edit mode (see DetailView.ViewEditMode). These controls are listed in the table below.

  • ASPxBytePropertyEditor

    View mode control: System.Web.UI.WebControls.Label.

    Edit mode control: ASPxSpinEdit editor from the ASPxEditors Library.

    Description:

    Used for byte type properties by default.

  • ASPxDecimalPropertyEditor

    View mode control: System.Web.UI.WebControls.Label.

    Edit mode control: ASPxSpinEdit editor from the ASPxEditors Library.

    Description:

    Used for decimal type properties by default. Inherited from the ASPxIntPropertyEditor class. Uses the "C" edit mask and display format. This Property Editor also enables float value input.

  • ASPxDoublePropertyEditor

    View mode control: System.Web.UI.WebControls.Label.

    Edit mode control: ASPxSpinEdit editor from the ASPxEditors Library.

    Description:

    Used for double type properties by default. Inherited from the ASPxFloatPropertyEditor class. Casts the editor's value to the double type.

  • ASPxFloatPropertyEditor

    View mode control: System.Web.UI.WebControls.Label.

    Edit mode control: ASPxSpinEdit editor from the ASPxEditors Library.

    Description:

    Used for single type properties by default.
    Inherited from the ASPxIntPropertyEditor class. Uses the "F" edit mask and display format by default. This Property Editor also enables float value input.

  • ASPxIntPropertyEditor

    View mode control: System.Web.UI.WebControls.Label.

    Edit mode control: ASPxSpinEdit editor from the ASPxEditors Library.

    Description:

    Used for Int32 type properties by default.

  • ASPxInt64PropertyEditor

    View mode control: System.Web.UI.WebControls.Label.

    Edit mode control: ASPxSpinEdit editor from the ASPxEditors Library.

    Description:

    Used for Int64 type properties by default. Inherited from the ASPxIntPropertyEditor class. Casts the editor's value to the Int64 type.

Expanded Mobile Property Editor for Numeric Properties

Each Mobile Property Editor has widgets that display a property in a Detail View's View mode and in an Edit mode (see DetailView.ViewEditMode). These widgets are listed in the table below.

MobileNumberPropertyEditor

View mode widget: a widget that displays text.

Edit mode widget: dxNumberBox with the showSpinButtons property is set to true.

Description:

Used for properties of all numeric types.

How would you rate this topic?​​​​​​​