Available in the Full Version

Radial Menu - ASP.NET MVC

This is an example of rendering the igRadialMenu using the ASP.NET MVC helper. This helper sets the various options on the igRadialMenu control and renders the required HTML and JavaScript.

This sample is designed for a larger screen size.

On mobile, try rotating your screen, view full size, or email to another device.

This is an example of rendering the igRadialMenu using the ASP.NET MVC helper. This helper sets the various options on the igRadialMenu control and renders the required HTML and JavaScript.

Code View

Copy to Clipboard
@using Infragistics.Web.Mvc
<!DOCTYPE html>
<html>
<head>
    <title></title>

    <!-- Ignite UI for jQuery Required Combined CSS Files -->
    <link href="http://cdn-na.infragistics.com/igniteui/2024.2/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
    <link href="http://cdn-na.infragistics.com/igniteui/2024.2/latest/css/structure/infragistics.css" rel="stylesheet" />
   
     <script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>

    <!-- Ignite UI for jQuery Required Combined JavaScript Files -->
    <script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.core.js"></script>
    <script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.lob.js"></script>
    <script src="http://cdn-na.infragistics.com/igniteui/2024.2/latest/js/infragistics.dv.js"></script>
</head>
<body>

    @(
        Html.Infragistics().RadialMenu()
            .ID("rMenu")
            .Width("300px")
            .Height("300px")

            .Items(i =>
                {
                    i.Item("button1")
                        .Header("Bold")
                        .IconUri("http://igniteui.com/images/samples/radial-menu/Bold.png")
                        .ClientEvents(new Dictionary<string, string>() { { "click", "function(evt, ui) { alert('Bold clicked'); }" } });

                    i.Item("button2")
                        .Header("Italic")
                        .IconUri("http://igniteui.com/images/samples/radial-menu/Italic.png")
                        .ClientEvents(new Dictionary<string, string>() { { "click", "function(evt, ui) { alert('Italic clicked'); }" } });
                    
                    i.ColorItem("colorItem1")
                        .Header("Color")
                        .IconUri("http://igniteui.com/images/samples/radial-menu/BColor.png")
                        .Items(si =>
                            {
                                si.ColorWell().Color("#FFFF00");
                                si.ColorWell().Color("#C00000");
                                si.ColorWell().Color("#008000");
                                si.ColorWell().Color("#002060");
                                si.ColorWell().Color("#000000");
                            });
                    
                    i.NumericGauge("numGauge1")
                        .WedgeSpan(5)
                        .Ticks(new double[] {8,9,10,11,12,13,14,16,18,20,22,24,26,28,36,48})
                        .Value(16);
                })
            .Render()
    )

</body>
</html>