DialogService Prevent Action - Async/Observable

1 Answer 17 Views
Dialog
Bob
Top achievements
Rank 1
Iron
Iron
Bob asked on 18 Nov 2025, 07:29 PM
Hi, I am using DialogService to display a component which has an async validator.  I want to have the PreventAction wait for the component's async validation to complete.  Is this possible?

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 21 Nov 2025, 11:26 AM

Hi Bob,

The preventAction callback was not designed for asynchronous actions. I recommend submitting a feature request in our feedback portal. I will also provide an example workaround that prevents the Dialog from closing by default and manually close the Dialog after confirmation from your asynchronous operation.

https://stackblitz.com/edit/angular-wspqn2c4?file=src%2Fapp%2Fapp.component.ts

I hope this helps.

Regards,
Yanmario
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.

Bob
Top achievements
Rank 1
Iron
Iron
commented on 21 Nov 2025, 02:28 PM

Thanks for reply.  I ended up just using <kendo-dialog-actions> in my component so I could define the buttons there and have more control over the button actions/state.
Tags
Dialog
Asked by
Bob
Top achievements
Rank 1
Iron
Iron
Answers by
Yanmario
Telerik team
Share this question
or