Getting Started with EJ 1 ASP.NET MVC GroupButton

26 Apr 2018 / 1 minute to read

This section provides details on how to create and customize Groupbutton control in an ASP.NET MVC application.

Dependencies

The following assemblies are needs to referenced to render a Groupbutton control in your application.

  1. Syncfusion.EJ.dll
  2. Syncfusion.EJ.MVC.dll

The script and CSS dependencies for rendering Groupbutton is given in the JS help document.

Create a simple GroupButton control

Create an ASP.NET MVC project and add necessary assemblies and script dependencies with the help of given Getting started document.

Add the below code in the view page to render a simple groupbutton control.

  • html
  • @Html.EJ().GroupButton("GroupButton").Items(item =>
    {
    item.Add().Text("Save");
    item.Add().Text("Open");
    item.Add().Text("Delete");
    })

    Run the project to get the following output

    grpbtn