Tab
A newer version of this page is available. Switch to the current version.

ASPxTokenBox.Value Property

Gets or sets the editor value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public override object Value { get; set; }
Public Overrides Property Value As Object

Property Value

Type Description
Object

An Object that contains the editor's value.

Remarks

The token Value corresponds to the ASPxTokenBox.Tokens collection via the ASPxAutoCompleteBoxBase.Items collection. The editor looks for an item with the corresponding ListEditItem.Text property value for every token. If an item is found, its ListEditItem.Value property value is added to the Value property; otherwise, the token text is added. The values are separated with the sign specified by the ASPxTokenBox.ValueSeparator property.

On the client side, you can get and set the editor value using the ASPxClientTokenBox.GetValue and ASPxClientTokenBox.SetValue methods.

Examples

This example demonstrates how the ASPxClientTokenBox.SetValue and ASPxClientTokenBox.GetValue methods are applied to the token box, and how the editor ASPxTokenBox.Value property corresponds to editor tokens.

ASPxTokenBox_Value

myToken.SetValue('naomi.moreno@example.net,heidi.lopez@example.net,jessie.she@example.net');
See Also