Version

AddClientEvent Method (ModelWidgetBase)

Adds javascript function to process client event of widget.
Syntax
'Declaration
 
Public Sub AddClientEvent( _
   ByVal eventName As System.String, _
   ByVal jsFunction As System.String _
) 
public void AddClientEvent( 
   System.string eventName,
   System.string jsFunction
)

Parameters

eventName
Name over available for widget.

It is recommended to use string constants available for a specific widget.

Examples: ComboClientEvents.DropDownOpened, DialogClientEvents.StateChanged, etc.
jsFunction
Name of javascript function which processes event, or content of function, or full implementation of function.

ClientEvents
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub