Success message or not after deleting a row

4 posts, 0 answers
  1. Juan
    Juan avatar
    22 posts
    Member since:
    Oct 2016

    Posted 24 Oct Link to this post

    Can anyone help me how to get a notification message after deleting a row of a batch editing grid.

    I need to show a success message or not after i click the ok button.

    Please i hope you can help me with this issue.

  2. Eduardo Serra
    Admin
    Eduardo Serra avatar
    51 posts

    Posted 24 Oct Link to this post

    Hi Juan,

    I encourage you to take a look at the Kendo UI Notification Overview to see how it could be implemented in your scenario.

    Without knowing much about the particulars of your Grid, I think one viable option would be to show the notification in the requestEnd event of the DataSource; there, you can check if the current request is to destroy and implement your custom logic:

    requestEnd: function(e) {
        if(e.type == "destroy")
        {
            //your custom logic
        }
    }

    I hope this helps.

    Regards,
    Eduardo Serra
    Telerik by Progress
     
    Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
     
  3. Kendo UI is VS 2017 Ready
  4. Juan
    Juan avatar
    22 posts
    Member since:
    Oct 2016

    Posted 24 Oct in reply to Eduardo Serra Link to this post

    Hi Eduardo, thanks for your help!

    Now i have another issue.

    When i catch an exception like integrity constraint on my controller , i want to show a message error that the record could not be deleted.

    Any idea of how can i do that?.

    I want to do something like this:

    if (e.type == "destroy") {
                    $("#showSucces").show();
                    $("#showDanger").hide();
                    $("#showSucces").fadeIn(2000).delay(7000).fadeOut(1000);
                } --> this in case that the row was successful deleted.

    And now i want to show the error message in case that the record was unsuccessful deleted.

  5. Eduardo Serra
    Admin
    Eduardo Serra avatar
    51 posts

    Posted 25 Oct Link to this post

    Hello Juan,

    In order to offer a complete picture of what can be done to deal with server-side errors, I encourage you to take a look at a blog post that was written by a colleague; read Handling Server-side Validation Errors in your Kendo UI Grid here.

    I hope this helps!

    Regards,
    Eduardo Serra
    Telerik by Progress
     
    Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
     
Back to Top
Kendo UI is VS 2017 Ready