No confirmation on Grid Row Delete when using MVVM

2 posts, 0 answers
  1. Keith
    Keith avatar
    33 posts
    Member since:
    Jan 2013

    Posted 08 May 2013 Link to this post


    I have a Kendo grid and am using MVVM binding, I have CRUD operations defined. Everything works fine with out exception I never get a confirmation message when deleting a row.

    I have the Grid editable property set to:
    editable: { "mode": "popup" }

    If I change this to:
    editable: "popup"

    Then I successfully get the delete confirmation message.

    However I need to retain the first method as I want to use a template like below:
    editable: { "mode": "popup", "template": $("#popup_editor").html() },

    Any ideas why the confirmation message doesn't appear.  Also If I do the following
    editable: { "mode": "popup", confirmation: "Are you sure" }

    Then it functions correctly.  I'd prefer not to have to do this for localisation reasons.

  2. Alexander Valchev
    Alexander Valchev avatar
    2895 posts

    Posted 10 May 2013 Link to this post

    Hi Keith,

    Thank you for getting in touch with us.

    I am afraid that this is the default behaviour:
    1. If the editable is set to string, the confirmation will be enabled;
    2. If the editable is set to object, the confirmation will be disabled. To enable it you should set a confirmation message. 
      editable: { "mode": "popup", "confirmation": "Are you sure" }

    The behaviour is not related to Kendo MVVM, it occurs no matter if the Grid is bound to a ViewModel or not.

    Kind regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top