"Action" parameter in ShowDialog

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
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
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json mixin.theme