Miscellaneous in EJ 1 ASP.NET MVC GroupButton

26 Apr 2018 / 1 minute to read

Text

You can display your own text for Button. By using the Text property, you can easily set text content for button. This text property overwrites the text that is provided on input button element.

In the view page, add the following button elements to configure Button with text

  • html
  • <%--Set the text for button control as follows--%>
    
     @Html.EJ().GroupButton("GroupButton").Items(item =>
                       {
                           item.Add().Text("Save");
                           item.Add().Text("Open");
                           item.Add().Text("Delete");
                       })

    text

    Show Rounded Corner

    Customizes the corners of Groupbutton control to be rendered with Rounded corners.

    In the view page, add the following button elements to get rounded Button

  • html
  • <%--Enable the rounded corner for button control as follows--%>
     @Html.EJ().GroupButton("GroupButton").ShowRoundedCorner(true).Items(item =>
                       {
                           item.Add().Text("Save");
                           item.Add().Text("Open");
                           item.Add().Text("Delete");
                       })

    roundedcorner