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


    I've made a command.Custom in my grid:
    columns.Command(command =>
              .Text("<i class=" + "icon-globe" + "></i> Details")
              .HtmlAttributes(new { @style = "width:100px" });
    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?")
                    .Window(w => w.Title("Detaljer"))

    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.

  2. Vladimir Iliev
    Vladimir Iliev avatar
    2203 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
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top