Back to Devexpress

RepositoryItemTokenEdit.ClearCheckStatesOnLostFocus Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtokenedit-53454229.md

latest3.2 KB
Original Source

RepositoryItemTokenEdit.ClearCheckStatesOnLostFocus Property

Gets or sets whether checked tokens within the related TokenEdit control should be deselected when the editor loses focus.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public DefaultBoolean ClearCheckStatesOnLostFocus { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(DefaultBoolean.Default)>
Public Property ClearCheckStatesOnLostFocus As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

true if checked tokens within the related TokenEdit control should be deselected when the editor loses focus; otherwise, false.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

Depending on the RepositoryItemTokenEdit.CheckMode property value, end-users can select (check) one or multiple tokens by clicking their captions. If the ClearCheckStatesOnLostFocus property equals DefaultBoolean.True (or DefaultBoolean.Default ), adding new items or driving the focus away from the editor removes the token selection. Otherwise, none of these actions deselects the selected tokens.

If the ClearCheckStatesOnLostFocus property equals DefaultBoolean.False and the RepositoryItemTokenEdit.CheckMode property is set to Multiple , end-users can uncheck currently checked items by clicking their captions again with the Ctrl keyboard key pressed. In Single check mode, once the token is selected, an end-user cannot deselect it unless you remove this token or select another one.

To get all currently checked items use the TokenEdit.CheckedItems collection.

See Also

CheckedItems

CheckMode

RepositoryItemTokenEdit Class

RepositoryItemTokenEdit Members

DevExpress.XtraEditors.Repository Namespace