"Action" parameter in ShowDialog

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!

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

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.


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.
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