toolbar.items.templateString|Function
The template which renders the command. By default renders a button.
Check Toolbar template for a live demo.
Example - configure toolbar item template
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "name" },
{ field: "age" }
],
dataSource: [
{ name: "Jane Doe", age: 30 },
{ name: "John Doe", age: 33 }
],
toolbar: {
items: [
{
name: "customDropDown",
template: (data) => `<select class="k-dropdown">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>`
}
]
}
});
</script>
In this article