Back to Devexpress

MVCxTokenBoxProperties.Caption Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-mvcxtokenboxproperties.md

latest1.6 KB
Original Source

MVCxTokenBoxProperties.Caption Property

Gets or sets the editor caption.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public string Caption { get; set; }
vb
Public Property Caption As String

Property Value

TypeDescription
String

A String value that specifies the text content of the editor caption.

|

Remarks

The code sample below demonstrates how to define a caption for the TokenBox editor.

cshtml
@Html.DevExpress().TokenBox(settings => {
    settings.Name = "Categories";
    settings.Properties.Caption = "Select Categories";
    // ...
}).BindList(ViewBag.Categories).Bind(Model.Categories).GetHtml()

See Also

Data Editors - CaptionOnline demo:

TokenBox

MVCxTokenBoxProperties Class

MVCxTokenBoxProperties Members

DevExpress.Web.Mvc Namespace