Skip to content

SAIFButton

A styled submit button that can show an activity indicator and disable the surrounding form on click, giving pages a consistent busy-state UX for long-running postbacks without custom script BR-V2-092.

Purpose

  • Switches its CSS class to an indicator style when EnableIndicator is set, to give visual feedback during a postback BR-V2-092.
  • Registers its own client script for the indicator/disable behavior rather than depending on a shared page-level script BR-V2-093.

Context

  • Namespace: SAIF.Presentation.Web.Controls.V2
  • Assembly/package: SAIF.Presentation.Web.Controls.V2 (packaged in SAIF.BOF.Presentation.Web.Infragistics111.nuspec)

Public members

Member Signature Purpose
EnableIndicator Public Property EnableIndicator As Boolean Enables the activity-indicator CSS class swap on click BR-V2-092.
DisableFormControlsOnClick Public Property DisableFormControlsOnClick As Boolean Disables other form controls on click to prevent concurrent interaction during postback.
OnPreRender Protected Overrides Sub OnPreRender(e As EventArgs) Registers Button.js and wires the click-time indicator/disable behavior BR-V2-093.

Behavioral notes

  • Registers its client script independently of SAIFComboBox/SAIFListBox, even though all three share the same indicator/disable behavior pattern BR-V2-093.

Sources

  • SAIF.Presentation.Web.Controls.V2/SAIFButton.vb