[Solved] Notification support for closeable and hideAfter combined

2 Answers 13 Views
Notification
Derek
Top achievements
Rank 1
Iron
Derek asked on 07 Jul 2026, 02:20 PM

The hideAfter property is ignored when the closable property is set to true.

This is the current behaviour however, would like the ability to use closable and hideAfter together. So the user can close manually, or it'll eventually disappear.

Is there a reason why we want have them both working together?

https://github.com/telerik/kendo-angular/issues/2238

https://github.com/telerik/kendo-angular/issues/3049

I don't believe this is the first time requested and it would be a good feature to have.

2 Answers, 1 is accepted

Sort by
0
Derek
Top achievements
Rank 1
Iron
answered on 07 Jul 2026, 02:27 PM
https://feedback.telerik.com/kendo-angular-ui/1407103-allow-closable-notifications-with-auto-hide
0
Zornitsa
Telerik team
answered on 10 Jul 2026, 07:13 AM

Hi Derek,

Indeed, the Notification component ignores the hideAfter setting when the closable property is set to true. As you have also found out, we have a feature request logged in our Feedback Portal regarding providing the ability to auto-hide closable Notifications as a built-in feature in the component:

I would suggest following the feature request to stay notified of any progress on its implementation. I can see that you have already added a vote for the item, which is great, since this will increase its customer demand and its chances of future implementation.

For the time being, to enable both auto-hide and the close icon for Kendo UI for Angular Notification, the developer would need to implement a custom approach. To be more comprehensive, you can manually hide the notification after a set duration using setTimeout and the hide() method.

Here is a concise example:

import { Component } from '@angular/core';
import { NotificationService, NotificationRef } from '@progress/kendo-angular-notification';

@Component({
  selector: 'my-app',
  template: `<button (click)="show()">Show Notification</button>`
})
export class AppComponent {
  public notificationRef: NotificationRef;

  constructor(private notificationService: NotificationService) {}

  show(): void {
    this.notificationRef = this.notificationService.show({
      content: 'Your data has been saved. Time for tea!',
      closable: true
    });

    setTimeout(() => {
      if (this.notificationRef) {
        this.notificationRef.hide();
      }
    }, 3000); // Auto-hide after 3 seconds
  }
}

With this approach, users can close the notification manually using the close icon, or it will automatically disappear after the specified timeout. For reference, here is a Knowledge Base article that explains this approach:

Let me know if you need any more details or assistance on this matter.

Regards,
Zornitsa
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Notification
Asked by
Derek
Top achievements
Rank 1
Iron
Answers by
Derek
Top achievements
Rank 1
Iron
Zornitsa
Telerik team
Share this question
or