Miscellaneous in EJ 1 ASP.NET MVC SplitButton
8 Aug 2017 / 1 minute to read
Text
It is necessary to display the user defined text for Split Button. Using Text property, you can easily set text content for Split Button.
The following steps explains you the details about rendering the Split Button with specified text.
- In the VIEW page, add the following button elements to configure Split Button widget
//Add the code in the CSHTML page to configure and initialize the control
@*Set the text for split button control as follows. *@
<div class="spltspan">
@Html.EJ().SplitButton("splitButton_text").Text("sign in").Size(ButtonSize.Small).TargetID("Ul11")
<ul id="Ul11">
<li><span>User</span></li>
<li><span>Guest</span></li>
<li><span>Admin</span></li>
</ul>
</div>
Execute the above code to render the following output.
ShowRoundedCorner
Specifies the corner of Split Button in rounded shape. By default, the edges of Split Button is not rounded. To set rounded corner, you can enable ShowRoundedCorner property.
The following steps explains you the details about rendering the Split Button with rounded corner.
- In the VIEW page, add the following button elements to configure Split Button widget.
//Add the code in the CSHTML page to configure and initialize the control
@*Enable the rounded corner for split button control as follows.*@
<div class="spltspan">
@Html.EJ().SplitButton("splitButton_roundedCorner").Text("login").Size(ButtonSize.Small).ShowRoundedCorner(true).TargetID("Ul11")
<ul id="Ul11">
<li><span>User</span></li>
<li><span>Guest</span></li>
<li><span>Admin</span></li>
</ul>
</div>
Execute the above code to render the following output.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page