View Full Version : itemdoubletap on dataview behaviour

24 Feb 2011, 8:13 PM
When I read the api docs for the itemdoubletap on a dataview, I get the impression that it's when a particular item gets double tapped but it's behaviour is the last item clicked in the double tap delay time.

For example, on the NestedList example in the Kitchensink Data section if you click "Aron's Order: then click "Mario's order" within the double click delay time, then Mario's order will be what is detected. I'd expect no itemdoubletap to be triggered since two different items were clicked.

Is this the expected behaviour?

To repro change the nestedLoading.js code for the dataview to:

xtype: 'dataview',

* The XTemplate allows us to easily render the data from our User model, as well as
* iterating over each User's Orders and OrderItems:
tpl: [
'<tpl for=".">',
'<div class="user">',
'<h3>{name}\'s orders:</h3>',
'<tpl for="orders">',
'<div class="order" style="padding-left: 20px;">',
'Order: {id} ({status})',
'<tpl for="orderItems">',
'<li>{quantity} x {name}</li>',

itemSelector: 'div.user',
multiSelect: true,
simpleSelect: true,
styleHtmlContent: true,

store: new Ext.data.Store({
model: 'User',
autoLoad: false
"itemdoubletap": function(dataview, index, item, e)
alert("index:" + index);

Click Aron once then Mario once quickly and see that Mario is the item in the itemdoubletap. It seems like the itemdoubletap should be reset/ignored when another item is clicked.