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

Grid problem, change the labels of the buttons in the popup window

1 Answer 288 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mattias Hermansson
Top achievements
Rank 1
Mattias Hermansson asked on 20 Sep 2013, 12:56 PM
Hello,

I've made a command.Custom in my grid:
columns.Command(command =>
       {
          command.Custom("Details")
          .Text("<i class=" + "icon-globe" + "></i> Details")
          .SendDataKeys(true)
          .Click("archiveAppliance")
          .HtmlAttributes(new { @style = "width:100px" });
 
 
       }).Width(110);
   })
I also have a "add" button in the grid that opens a popup window
.Editable(editable =>
 
                editable.DisplayDeleteConfirmation("Är du säker på att du vill ta bort detta Delområde?")
                .Mode(GridEditMode.PopUp)
                 
                .TemplateName("PartAreaEdit")
                .Window(w => w.Title("Detaljer"))
            )

H
ow can i change the labels on the buttons "update" and "cancel" in the popup window without making a command.edit() button and use the .Text()
.CancelText().UpdateText() which gives me another button that i don't want.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 24 Sep 2013, 08:10 AM
Hi Anders,

 
Possible solution is to use the Edit event of the Grid to find the needed buttons ("k-grid-update" and "k-grid-cancel") inside edit container using jQuery and replace their text.

Kind 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
Mattias Hermansson
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or