MVCxCheckBoxListProperties.Caption Property
Gets or sets the CheckBoxList caption.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
String | A String value that specifies the text content of the CheckBoxList caption. |
Remarks
The code sample below demonstrates how to define a caption for the CheckBoxList editor.
@Html.DevExpress().CheckBoxList(settings => {
settings.Name = "Options";
settings.Properties.Caption = "Search Options";
// ...
}).Bind(Model.Options).BindList(ViewBag.Options).GetHtml()
See Also