toolbar.name String

The name of the toolbar command. Can be either a built-in ("search", "sort", "group" or "details") or a custom string. The name is output in the HTML as a value of the data-command attribute of the button.

Example - specifying the name of the command

<div id="propertyGrid"></div>
<script>
  $("#propertyGrid").kendoPropertyGrid({
    toolbar: [
      "search",
      { name: "custom", click: function() { alert("custom"); } }
    ],
    model: {
        foo: "bar",
        baz: 5
    },
    width: 500
  });
</script>
In this article