Programatically close a dialog opened via DialogService?

I'm opening a custom dialog as follows:

private async Task ShowPullTypeDlg()
    {
 string promptText = await DialogService.PromptAsync(null, "What do you want to do?", new DialogOptions()
                {
                    Width = "500px",
                    Height = "320px",
                    AllowDragging=true,


                    ChildContent = @<etc...>
});

In it, I have some buttons that are not the OK/Cancel buttons.

I want to close the dialog when any of those buttons are clicked.

How do I do that?


1 Reply

KP Kokila Poovendran Syncfusion Team July 10, 2023 08:29 AM UTC

Hi Keith A Price,


We have logged the requested requirement as a feature at our end. This support will be included in any one of our upcoming releases. Please track the status of the reported issue from the below feedback.

Feedback Linkhttps://www.syncfusion.com/feedback/45058/need-to-provide-support-for-close-predefined-dialogs-programmatically


Regards,

Kokila Poovendran.


Loader.
Up arrow icon