Version

Spin Property

Gets sets name of javascript function which is called when value is incremented or decremented by a spin button or by up/down arrow key.
Syntax
'Declaration
 
Public Property Spin As String
public string Spin {get; set;}
Remarks

Action can be canceled.

Example
Editor.ClientEvents.Spin = "Editor_Spin"
Editor.ClientEvents.Spin = "Editor_Spin";
// The client event 'Spin' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the TextEditorSpinEventArgs

//ID of the editor raising the event is "Editor"


function Editor_Spin(sender, e) {


    //Gets the delta value of the spin event.
    //For WebTextEditor, delta returns +1 or -1 depending on the upper button or lower button
    //For Numeric and Date editors, delta returns + or - of the SpinDelta property value set on the 
    //server side depending on the lower or upper button.
    var delta = e.get_delta();
        
}
Requirements

Target Platforms: Windows 10, 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