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

2 posts, 0 answers
  1. Mattias Hermansson
    Mattias Hermansson avatar
    24 posts
    Member since:
    May 2010

    Posted 20 Sep 2013 Link to this post

    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.
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2192 posts

    Posted 24 Sep 2013 Link to this post

    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!
Back to Top