This is a migrated thread and some comments may be shown as answers.

Grid -toolbox, change built-in commands text

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AG
Top achievements
Rank 1
AG asked on 22 Feb 2013, 03:04 PM
When i try to change text of built-in commands (for example: create), then kendoGrid command doesn't work properly (no action). I just changed the grid "editing" example from

 $("#grid").kendoGrid({
                        dataSource: dataSource,
                        navigatable: true,
                        pageable: true,
                        height: 400,
                        toolbar: ["create", "save", "cancel"],

to

 $("#grid").kendoGrid({
                        dataSource: dataSource,
                        navigatable: true,
                        pageable: true,
                        height: 400,
                        toolbar: [{ command: "create", text: "Custom text" }, "save", "cancel"],


It's seems that event does not bind automatically or is something else?

Thank's.

AG

1 Answer, 1 is accepted

Sort by
0
AG
Top achievements
Rank 1
answered on 22 Feb 2013, 03:47 PM
Ok..I found out..when using available commands. you should use

$("#grid").kendoGrid({
                        dataSource: dataSource,
                        navigatable: true,
                        pageable: true,
                        height: 400,
                        toolbar: [{name: "create", text: "Custom Create"}, "save", "cancel"],
Tags
Grid
Asked by
AG
Top achievements
Rank 1
Answers by
AG
Top achievements
Rank 1
Share this question
or