This is a migrated thread and some comments may be shown as answers.

display notification after submit a delete action

1 Answer 35 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Wassim
Top achievements
Rank 1
Veteran
Iron
Wassim asked on 14 Oct 2020, 02:00 PM

Hello,

i want to display notification after delete an element from grid view and after that i should to redirect to another action (display list updated).

i used notification template of telerik ui by default that i developed in partial view because i want to use it in other pages.

my problem is how to display notification after click delete action and redirect to the list update and the notification still showing.
if you have an idea or another preposition to resolve this?

Thanks !

1 Answer, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 16 Oct 2020, 08:47 AM

Hi Wassim,

I am not sure I entirely understand the scenario. You can handle the remove event of the Grid to display a notification and the Grid will be refreshed showing the remaining items. Here is a sample dojo demonstrating this.

If you redirect to another page the page will have a different HTML markup and will basically need to know that a notification needs to be displayed. You can refer to these SO threads for possible approaches on handling such a scenario:

https://stackoverflow.com/questions/11427859/display-notification-on-target-page-after-redirect

https://stackoverflow.com/questions/47574400/how-to-keep-toastr-notification-alive-after-redirection-to-another-page-in-asp-m

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Notification
Asked by
Wassim
Top achievements
Rank 1
Veteran
Iron
Answers by
Aleksandar
Telerik team
Share this question
or