Back to Devexpress

MVCxRadioButtonListProperties.Caption Property

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

latest1.7 KB
Original Source

MVCxRadioButtonListProperties.Caption Property

Gets or sets the RadioButtonList 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 RadioButtonList caption.

|

Remarks

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

cshtml
@Html.DevExpress().RadioButtonList(settings => {
    settings.Name = "Option";
    settings.Properties.Caption = "Select the Required Mode";
}).BindList(ViewBag.Items).Bind(Model.Option).GetHtml()

See Also

Data Editors - CaptionOnline demo:

RadioButtonList

MVCxRadioButtonListProperties Class

MVCxRadioButtonListProperties Members

DevExpress.Web.Mvc Namespace