Search results

Right-To-Left in ASP.NET MVC RadioButton control

30 Jul 2021 / 1 minute to read

RadioButton component has RTL support. This can be achieved by setting enableRtl as true.

The following example illustrates how to enable right-to-left support in RadioButton component.

razor
rtl.cs
Copied to clipboard
@section ControlsSection{
     @Html.EJS().RadioButton("radio1").Label("Default").Name("default").EnableRtl(true).Render()
}


<style>

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

li {
  list-style: none;
}

</style>
Copied to clipboard
public ActionResult Rtl()
{
    return View();
}