PDA

View Full Version : xtype list -> item index -> datastore



realjax
21 Apr 2011, 4:30 AM
The itemtap event of an Ext.List receives an index of the item tapped. Does this index correspond to the index of the record in the store that this List uses ? If not, it there a way to determine it ?

realjax
25 Apr 2011, 11:30 PM
bump

isibbot
26 Apr 2011, 12:29 AM
As long as your are just hooking up a store to a list via the store: mehtod then I dont see why not. Surely you could test this buy dumping the record to the console.log? to test?

realjax
26 Apr 2011, 1:20 AM
Of course I have tested this and on first glance they seem to be on par. But I would like to know if I can count on this to be true in all circumstances. (what if sorting and/or filtering is applied for instance?)