Skip to main content

ASPxClientTokenBox.GetValue Method

Gets the editor value.

Declaration

GetValue(): string

Returns

Type Description
string

A string that is the editor value.

Remarks

Use the GetValue property to get the editor value that is a string containing values of items, whose text is equal to tokens, separated with a sign specified by the ASPxTokenBox.ValueSeparator property. If the ASPxAutoCompleteBoxBase.Items collection does not contain an item that corresponds to token text, the token text is added to the value.

To set the token value, use the ASPxClientTokenBox.SetValue method.

Example

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