Hide dropdown arrow
11 Apr 20222 minutes to read
You can hide the dropdown arrow from the DropDownButton by adding class e-caret-hide
to DropDownButton element using cssClass
property.
<ejs-dropdownbutton id="hide-arrow" content="Edit" items="ViewBag.items" cssClass="e-caret-hide"></ejs-dropdownbutton>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace WebApplication1.Controllers
{
public class DropDownButtonController : Controller
{
public ActionResult HideArrow()
{
List<object> items = new List<object>();
items.Add(new
{
text = "Cut"
});
items.Add(new
{
text = "Copy"
});
items.Add(new
{
text = "Paste"
});
ViewBag.items = items;
return View();
}
}
}