contextMenu.body.commandString
Specifies the command of the item.
Example
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "productName" },
{ field: "category" }
],
dataSource: [
{ productName: "Tea", category: "Beverages" },
{ productName: "Coffee", category: "Beverages" }
],
contextMenu: {
body: [
{
text: "Export Row",
command: "ExportRowCommand"
}
]
}
});
</script>
In this article