Search results

Set the disabled state

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

razor
disabled.cs
@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()

<style>

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

button {
  margin: 20px 0 0 5px;
}

li {
  list-style: none;
}

</style>
public ActionResult Disabled()
{
    return View();
}