Having trouble getting help?
Contact Support
Contact Support
Set the disabled state
1 Mar 20221 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
.
@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();
}