VSTS modal dialog close event RRS feed

  • Question

  • Hi,

    I am using microsoft VSTS (https://docs.microsoft.com/en-us/vsts/user-guide/what-is-vsts?view=vsts) modal dialog (https://docs.microsoft.com/en-us/vsts/extend/reference/client/controls/modaldialog?view=vsts) and I want a confirmation message when modal dialog is closed from 'x' (closed button of modal dialog), I get close event which fired after dialog is closed.

    I want an event before closing the dialog. How can I do that?

    here is the code:

           var contributionId = //id 
           var dialogOptions = { title: "ABC", close: onDialogCloseByCrossButtonClick }; 
           dialogService.openDialog(contributionId, dialogOptions).then(
                   function (dialog) {
                        // do something
    Tuesday, April 17, 2018 5:24 AM

All replies

  • Hi kmes40505,

    Welcome to the MSDN forum.

    It seems your issue is about the VSTS and refer to this declaration, we can report a problem with VSTS itself on Developer Community, provide a suggestion on UserVoice, get advice on Stack Overflow, and get support on VSTS Support, thank you for your understanding.

    BTW, you can have a look at this similar issue and it seems we cannot achieve this requirement now.

    Best regards,


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, April 18, 2018 7:36 AM