FormControl.dragDrop Method

Determines whether drag-and-drop operations are enabled or disabled for the control.

Syntax

public int dragDrop([int value])

Run On

Client

Parameters

  • value
    Type: int
    An integer value that indicates whether drag-and-drop behavior is enabled; optional.

Return Value

Type: int
1 if drag-and-drop operations are enabled; otherwise, false.

Examples

The following example shows how to return or set the value that indicates whether drag-and-drop behavior is enabled.

boolean dDragDrop; 
 
// The ctrl variable was previously assigned  
// as a FormControl value. 
 
// Retrieve the drag-and-drop-enabled value. 
dDragDrop = ctrl.dragDrop(); 
 
// Set the drag–and–drop-enabled value. 
ctrl.dragDrop(true);

See Also

Reference

FormControl Class