onDownHold Event

Arguments

indexnumber

The zero-based row number the user is holding.

Description

Fires when the user holds down on a row in the List.

Discussion

The onDownHold event is triggered when the user holds down on a row in the List.

Example: Get Data for the Down Hold Row 

The this object contain the data for the List control. You can use the index passed into the onDownHold event to get data for the row. For example:

var data = this.getData(index);
alert(data.Firstname);

onDownHold Executes">Example: Selecting the Row when onDownHold Executes 

You might also want to select the row when this event fires. To select the row, use this code:

this.setValue(index);

If you want to prevent the onSelect event firing when you select the row, use this code:

this.setValue(index,false);