Skip to content

Instantly share code, notes, and snippets.

@ricardoalcocer
Last active December 14, 2015 06:18
Show Gist options
  • Save ricardoalcocer/5041104 to your computer and use it in GitHub Desktop.
Save ricardoalcocer/5041104 to your computer and use it in GitHub Desktop.
Get row Id on Android when the row has child objects
function onMenuClick(e){
if(e.source.id!=='row'){ // row is user-defined
var selectedRowId=e.source.parent.rowId; // rowId is user-defined
}else{
var selectedRowId=e.row.rowId;
}
alert(selectedRowId)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment