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
    [Expand]Numeric Properties
    [Expand]Date and Time Properties
    [Collapse]Boolean Properties
      Boolean Properties in XPO
      Boolean Properties in Entity Framework
      Boolean Properties in Domain Components
    [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
[Expand]End-User Documentation

Boolean Properties

In XAF, Boolean and Nullable Boolean properties can be displayed through:

Windows Forms:

ASP.NET:

Note

To see Boolean Property Editors in action, refer to the Property Editors | Boolean Properties section in the Feature Center demo installed with XAF. 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 Windows Forms Property Editors for Boolean 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.

Property Editor Type and Description Control Repository Item

BooleanPropertyEditor

Used for Boolean properties.

By default, the BooleanEdit control and the RepositoryItemBooleanEdit repository item are used.

The BoolComboBoxEdit control and RepositoryItemBoolComboBoxEdit repository item are used if at least one pair of the following values is specified:

BooleanEdit - a descendant of the CheckEdit editor from the XtraEditors Library
or
BoolComboBoxEdit - a descendant of the ImageComboBoxEdit editor from the XtraEditors Library
RepositoryItemBooleanEdit - a descendant of the RepositoryItemCheckEdit repository item from the XtraEditors Library
or
RepositoryItemBoolComboBoxEdit - a descendant of the RepositoryItemImageComboBox repository item from the XtraEditors Library

Expanded ASP.NET Property Editors for Boolean 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.

Property Editor Type and Description

Control Used in View Mode

Control Used in Edit Mode

ASPxBooleanPropertyEditor

Used to display Boolean properties.

By default, the ASPxCheckBox control is used in both View and Edit modes.

The ASPxImageLabelControl control and ASPxComboBox controls are used in the View and Edit modes, if at least one pair of the following values is specified:

ASPxImageLabelControl or ASPxCheckBox ASPxCheckBox, or ASPxComboBox

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