Search code examples
tableviewtitanium-mobile

titanium mobile: get row title in android issue


Hello friends,

I am developing an app in Titanium and I have a tableview with display data and on click on row I got row title successfully in iPhone and its work fine but in Android I can't get row title so please give me idea.

friendTableView.addEventListener('click',function(e)
{
    if(e.row)
    {
        alert(e.rowData.mobileNo);
        var mobileNo = e.rowData.mobileNo;
        alert(mobileNo);
    }
}

Thanks in advance.


Solution

  • I solve my issue:

              var mobileNo = e.row.mobileNo;
              alert(mobileNo);
    
              instead of
    
              var mobileNo = e.rowData.mobileNo;
              alert(mobileNo); 
    

    and its work fine.