Share via


EcoResCategoryTreeDatasource.canDrop Method [AX 2012]

Checks whether a drop on a given target is enabled when the user performs a drag operation.

Syntax

public FormDrag canDrop(int idx, FormControl dragSource)

Run On

Client

Parameters

  • idx
    Type: int
    The ID of the target element in the tree control which is controlled by this class.
  • dragSource
    Type: FormControl Class
    The source of the drag. The tree control, if valid.

Return Value

Type: FormDrag Enumeration
The FormDrag::None enumeration value if the drop is not enabled; otherwise, the FormDrag::Move enumeration value.

Remarks

The function is overridden to disallow Drag Drop functionality.

See Also

Reference

EcoResCategoryTreeDatasource Class