inline editing - change default command text

3 posts, 0 answers
  1. Anica
    Anica avatar
    5 posts
    Member since:
    Aug 2012

    Posted 11 Aug 2012 Link to this post

    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. Developix
    Developix avatar
    15 posts
    Member since:
    Jan 2011

    Posted 07 Sep 2012 Link to this post

    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.


     

  3. Kendo UI is VS 2017 Ready
  4. OnaBai
    OnaBai avatar
    55 posts
    Member since:
    Aug 2012

    Posted 07 Sep 2012 Link to this post

    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" }
    ],




Back to Top