Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ListView.onitemdragstart event

Applies to Windows only

Raised when the user begins to drag an item from a ListView control.

Syntax


<div 
    data-win-control="WinJS.UI.ListView" 
    data-win-options="{onitemdragstart : handler}">
</div>


function handler(eventInfo) { /* Your code */ }
 
// addEventListener syntax
listView.addEventListener("itemdragstart", handler);
listView.removeEventListener("itemdragstart", handler);


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains info about the event. The detail property of this object contains the following sub-properties:

PropertyMeaning
detail.dataTransfer

A JavaScript object containing information about the dragged item.

detail.dragInfo

A JavaScript object containing information about the ListView control.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

WinJS.UI

Library

Ui.js

See also

ListView
detail

 

 

Show:
© 2014 Microsoft