Skip to main content
A newer version of this page is available. .

Token Editors

Overview

Editor controls that support the Token mode are referred to as the Token Editors.Token Editors are used to select multiple items. Selected items are represented by tokens.

Your end-user can copy and paste tokens using the standard keyboard shortcuts.

The following controls support the Token mode.

The TokenEditorBehavior class provides access to token settings and events related to token manipulation.

Token ComboBoxEdit

ComboBoxEditStyleSettingsToken

To enable the Token operation mode for a combo box, assign the ComboBoxEdit‘s BaseEdit.StyleSettings property with an appropriate object. The following options are available.

The following example demonstrates how to activate the Token operation mode.

<dxe:ComboBoxEdit> 
    <dxe:ComboBoxEdit.StyleSettings> 
        <dxe:TokenComboBoxStyleSettings NewTokenPosition="Far"/> 
    </dxe:ComboBoxEdit.StyleSettings> 
</dxe:ComboBoxEdit>

Note

To learn more about ComboBoxEdit operation modes, see ComboBoxEdit Operation Modes.

Token LookUpEdit

TokenLookUpEdit

To enable the Token operation mode for a lookup editor, assign the LookUpEdit‘s BaseEdit.StyleSettings property with an appropriate object. The following options are available.

The following example demonstrates how to activate the SearchToken operation mode.

<dxg:LookUpEdit> 
    <dxg:LookUpEdit.StyleSettings> 
        <dxg:SearchTokenLookUpEditStyleSettings/> 
    </dxg:LookUpEdit.StyleSettings> 
</dxg:LookUpEdit>

Note

To learn more about LookUpEdit operation modes, see LookUpEdit Operation Modes.

See Also