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

How to change the text of update button

8 Answers 3004 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jagruti
Top achievements
Rank 1
Jagruti asked on 23 Oct 2012, 01:26 PM
I have used the popup editing of grid  from the  "http://demos.kendoui.com/web/grid/editing-popup.html". Its working fine but i want to change the text of that Update button.So please can any body help me.I am new in this kendo user.

8 Answers, 1 is accepted

Sort by
0
German
Top achievements
Rank 1
answered on 26 Oct 2012, 01:08 PM
I think it's when you define commands for the grid. Like this:

           columns.Command(command =>
            {
                command.Edit().UpdateText("Save my Changes").CancelText("Cancel all").Text("Edit");
                command.Destroy().Text("Delete for good");
            }).Width(200);

Hope it helps
1
Dark
Top achievements
Rank 1
answered on 07 Nov 2012, 05:46 AM
edit:function(e){  
var title = $(e.container).parent().find(".k-window-title");
    var update = $(e.container).parent().find(".k-grid-update");  
var cancel = $(e.container).parent().find(".k-grid-cancel");             
//e.container.kendoWindow("title","修 改");
$(title).text('修 改');
        $(update).html('<span class="k-icon k-update"></span>修 改');
$(cancel).html('<span class="k-icon k-cancel"></span>取 消');
},
0
Dark
Top achievements
Rank 1
answered on 08 Nov 2012, 07:29 AM
This is the use of options,it's so good so easy

command: [{name:"edit",text:{edit: "编 辑", update: "修 改", cancel: "取 消"}}
0
Henry
Top achievements
Rank 1
answered on 09 Feb 2014, 03:14 AM
good job.
让我找了半天.
0
Henry
Top achievements
Rank 1
answered on 09 Feb 2014, 03:25 AM
How can i batch submit info in popup model ?
0
Vladimir Iliev
Telerik team
answered on 13 Feb 2014, 07:20 AM
Hi Henry,

Please note that currently the batch updates are supported out of the box only for "incell" edit mode of the Grid.

Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Mario
Top achievements
Rank 1
answered on 05 Jan 2015, 04:20 PM
How can I also add a delete button with custom language?

I tried following, but it does not work

 { command: [{name:"edit", text:{edit: "Editieren", update: "Aktualisieren", cancel: "Abbrechen"}},
        {name:"destroy", text:{destroy: "test"}}
        ] }
0
Vladimir Iliev
Telerik team
answered on 06 Jan 2015, 08:28 AM
Hello,

For the "destroy" command you should set the localized message directly to the "text" option instead of nesting it in another object:

{
    command: [{
        name: "edit",
        text: {
            edit: "Editieren",
            update: "Aktualisieren",
            cancel: "Abbrechen"
        }
    }, {
        name: "destroy",
        text: "test"
    }]
}

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Jagruti
Top achievements
Rank 1
Answers by
German
Top achievements
Rank 1
Dark
Top achievements
Rank 1
Henry
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Mario
Top achievements
Rank 1
Share this question
or