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

How to add message to notification from controller

1 Answer 249 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Kristen
Top achievements
Rank 1
Kristen asked on 05 Feb 2018, 08:41 PM
Hi, I'm trying to use the Kendo Notification widget to add error/success messages to my page. Currently I'm using modelstate errors to display a quick message but I want to switch over to the kendo widget. My issue is I want to be able to set the notification message from the server side in the controller. Is there any way to easily access the notification widget from my controller?

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 08 Feb 2018, 12:17 PM
Hi,

If you want to set the message of the notification from the controller you can assign it to the value of some hidden field and then pass it are a variable to the show method of the notification. If you want to trigger the notification from the server you will have to go for SignalR and trigger the show event on the client part.
Hope this information will be helpful. If you have further questions please don't hesitate to contact us again.

Regards,
Plamen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Notification
Asked by
Kristen
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or