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

inline editing - change default command text

2 Answers 326 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anica
Top achievements
Rank 1
Anica asked on 11 Aug 2012, 06:52 AM

Hi,

I want to change the default text for update and cancel commands when inline editing (edit and destroy commands are not problem). How can I do that?

Also, is it possible to have both inline and popup editing in the same row (but with different commands) ?

Thanks

(sorry for my bad english:)

2 Answers, 1 is accepted

Sort by
0
Developix
Top achievements
Rank 1
answered on 07 Sep 2012, 09:44 AM

Me too...

Actually i have a hack in the DataBound event of the grid:

$(".k-grid-edit").html('<span class="k-icon k-edit"></span>');
$(".k-grid-delete").html('<span class="k-icon k-delete"></span>'); 

But that's not working when the popup editor is shown and some user inputs are done.


 

0
OnaBai
Top achievements
Rank 2
answered on 07 Sep 2012, 10:30 AM
Developix solution is, as far as I understand, about changing the icon / removing the text (even that you might use it for setting your own text).

For setting the text of a button in Kendo UI Grid use something like this in the Grid initialization:
toolbar: [
    { name: "create", text: "Add record" },
    { name: "edit", text: "Enter edit mode" },
    { name: "cancel", text: "Cancel Pending Changes" },
    { name: "save", text: "Save This Record" },
    { name: "destroy", text: "Remove Record" }
],




Tags
Grid
Asked by
Anica
Top achievements
Rank 1
Answers by
Developix
Top achievements
Rank 1
OnaBai
Top achievements
Rank 2
Share this question
or