"Action" parameter in ShowDialog

0
0

In form.ShowDialog there is an “action” parameter : what’s the use of it? Can I use to invoke a delegate? Can you post an example?

  • You must to post comments
0
0

Shows the form as a modal dialog on the client but not on the server. It’s similar to the typical javascript pattern for modal dialogs since in javascript you cannot block. Wisej supports that pattern on the server as well.

form.ShowDialog((sender, result) => {

// this code is executed when the dialog is closed, result contains the DialogResult.

});

// this code is executed right away, unlike a real modal dialog.

The same concept works for the MessageBox.Show() overload with the close callback handler.

https://wisej.com/docs/html/M_Wisej_Web_Form_ShowDialog.htm

Will update the documentation with more info.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.