Skip to main content

ProgressButton

Namespace: Wisej.Web.Ext.Syncfusion2

Assembly: Wisej.Web.Ext.Syncfusion2 (4.1.0.0)

The ProgressButton visualizes the progression of an operation to indicate the user that a process is happening in the background with visual representation.

public class ProgressButton : ej2Base

Constructors​

Instance member ProgressButton()​

Constructs a new instance of the ProgressButton class.

Example:

The following example creates a progress button and configures it through the Options object.

var progressButton = new ProgressButton();
progressButton.Options.content = "Upload";
progressButton.Options.isPrimary = true;
progressButton.Options.duration = 4000;
this.Controls.Add(progressButton);

Instance member ProgressButton(options)​

Constructs a new instance of the ProgressButton class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a progress button that shows the progress in the background and the spinner on the right, and notifies the server when the progress is complete.

var progressButton = new ProgressButton(new
{
content = "Download",
enableProgress = true,
duration = 5000,
spinSettings = new { position = "Right" }
});
progressButton.Instance.onEnd += new WidgetEventHandler((s, e) =>
{
AlertBox.Show("Download complete.");
});
this.Controls.Add(progressButton);

Implements​