Hi,
I'm basing my notifications on this demo: http://demos.telerik.com/aspnet-mvc/notification/templates
My templates are success, info, error, and warning.
Then I show them like this in JS...
I can set AutoHideAfter when I declare the notification, however I was wondering if it's possible to set AutoHideAfter for an individual template?
That way I can disable autohide for all templates except the success template.
Thanks for any help,
Joe
I'm basing my notifications on this demo: http://demos.telerik.com/aspnet-mvc/notification/templates
My templates are success, info, error, and warning.
@(Html.Kendo().Notification() .Name("notification") .Position(p => p.Pinned(true).Top(30).Right(30)) .Stacking(NotificationStackingSettings.Down) .AutoHideAfter(0) .Templates(t => { t.Add().Type("info").ClientTemplateID("infoTemplate"); t.Add().Type("success").ClientTemplateID("successTemplate"); t.Add().Type("error").ClientTemplateID("errorTemplate"); t.Add().Type("warning").ClientTemplateID("warningTemplate"); }) )Then I show them like this in JS...
notification.show({ message: "Upload Successful",}, "success");I can set AutoHideAfter when I declare the notification, however I was wondering if it's possible to set AutoHideAfter for an individual template?
That way I can disable autohide for all templates except the success template.
Thanks for any help,
Joe
