Search results

Set the disabled state in ASP.NET MVC RadioButton control

08 Apr 2021 / 1 minute to read

RadioButton component can be enabled/disabled by giving disabled property. To disable RadioButton component, the disabled property can be set as true.

Copied to clipboard
@Html.EJS().RadioButton("radio1").Label("Option 1").Name("default").Checked(true).Render()
@Html.EJS().RadioButton("radio2").Label("Option 2").Name("default").Disabled(true).Render()
@Html.EJS().RadioButton("radio3").Label("Option 3").Name("default").Render()


.e-radio-wrapper {
  margin-top: 18px;

button {
  margin: 20px 0 0 5px;

li {
  list-style: none;

Copied to clipboard
public ActionResult Disabled()
    return View();