I would like to get the id when I fire onlongpress event, but the function doesn’t return any id/object. How to get it?.
any help?
You can get item ID with the help of a locate method:
view:"dataview",
on:{
onLongTouch:function(context){
var id = this.locate(context);
}
}
You’ve meant the onLongTouch
, I suppose.