BootstrapTagBoxValues<TKey>.CustomTagTexts Property
Returns a collection of custom tags (values that are not listed in the Tag Box control but manually entered by an end-user).
Namespace: DevExpress.AspNetCore.Bootstrap
Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
List<String> | A collection of custom tags. |
Remarks
IMPORTANT
Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.
Using the CustomTagTexts
property makes only sense once custom tags are activated in the Tag Box control. To do this, enable the AllowCustomTags property.
The code below demonstrates this member in action.
@model BootstrapTagBoxValues<int>
<form method="post">
@(Html.DevExpress()
.BootstrapTagBoxFor(m => m)
.AllowCustomTags(true)
.Items(items =>
{
items.Add()
.Text("Item 1")
.Value(1);
}))
<button type="submit" class="btn btn-primary">Submit</button>
</form>
For more information on the Tag Box control, refer to the Tag Box online demo.