RadioGroup Overview

Telerik UI for ASP.NET MVC Ninja image

The RadioGroup is part of Telerik UI for ASP.NET MVC, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

The Telerik UI RadioGroup HtmlHelper for ASP.NET MVC is a server-side wrapper for the Kendo UI RadioGroup widget.

The RadioGroup allows to check and uncheck radio buttons, set the position of the labels, attributes and custom css classes.

Initializing the RadioGroup

The following example demonstrates how to define the RadioGroup.

    @(Html.Kendo().RadioGroup()
        .Name("radiogroup")
    )

Basic Configuration

The following example demonstrates the basic configuration for the RadioGroup.

    @(Html.Kendo().RadioGroup()
        .Name("radiogroup")
        .Items(i =>
        {
            i.Add().Label("Spain").Value("1");
            i.Add().Label("Italy").Value("2");
            i.Add().Label("UK").Value("3");
        })
        .Value("1")
    )
    <script>
    $(function() {
        // The Name() of the RadioGroup is used to get its client-side instance.
        var radiogroup = $("#radiogroup").data("kendoRadioGroup");
    });
    </script>

Functionality and Features

See Also

In this article