Using a Kendo Grid, how do you change the wording on the "Create" button in the toolbar?

Rodney picture Rodney · Sep 21, 2012 · Viewed 11.7k times · Source

I'm using a Kendo Grid I added the "create" to do an inline add of a record. How can I change the wording on the add button? Currently it reads: "Add a new Record" I want to simplify it to read just "Add" and I'd also like to keep the same Icon.

My code looks like:

$reports.kendoGrid(
{
    dataSource: dataSource,
    toolbar: ["create"],
    ...

Any suggestions would be greatly appreciated.

Answer

Rodney picture Rodney · Sep 21, 2012

The way to do this is using the following syntax:

$reports.kendoGrid(
{
    dataSource: dataSource,
    toolbar: [{ name: "create", text: "Add" }],