TokenBoxSettings Class
Contains the TokenBox extension settings.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Remarks
To declare the TokenBox in a View, invoke the ExtensionsFactory.TokenBox helper method. This method returns the TokenBox extension that is implemented by the TokenBoxExtension class.
To configure the TokenBox extension, pass the TokenBoxSettings object to the ExtensionsFactory.TokenBox helper method as a parameter. The TokenBoxSettings object contains all the TokenBox extension settings.
Refer to the TokenBox Overview topic to learn how to add the TokenBox extension to your project.
To access the TokenBox specific settings, refer to the TokenBoxSettings.Properties property.
@Html.DevExpress().TokenBox(settings =>
{
settings.Name = "tokenBox1";
settings.Properties.TextField = "Name";
settings.Properties.ValueField = "Email";
settings.Properties.IncrementalFilteringMode = IncrementalFilteringMode.StartsWith;
settings.Properties.IncrementalFilteringDelay = 500;
}).BindList(Model).GetHtml()
The image below illustrates the results.