Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7796] Android: Accessing row and rowData properties has different results for TableView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-20T16:25:28.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sRelease 2.0.2, Release 2.1.0, Sprint 2012-08
ComponentsAndroid
Labelsapi, parity
ReporterVarun Joshi
AssigneePing Wang
Created2012-02-23T17:39:49.000+0000
Updated2012-05-23T12:40:07.000+0000

Description

The sample case is the KitchenSink app on Android. Please follow these steps to reproduce: 1. Navigate to Resources/examples/table_view_basic.js and table_view_api_basic.js files 2. Go to showClickEventInfo(e, islongclick) function 3. Add a small line to access the e.row.title and e.rowData.title properties. The issue is that with the tableview created in table_view_api_basic.js file, the title can be accessed through both e.rowData.title and e.row.title but in table_view_basic.js file, this is not the case. Please clarify about this issue.

Comments

  1. Ivan Skugor 2012-03-07

    Neeraj and Varun, this issue is invalid. Starting from 1.8 SDK, when rows are created explicitly (by using "createTableViewRow"), they can be accessed in event listener as "e.row", while when they are created implicitly (by using JS object, like { title: "Table view row" }), then "e.rowData" has to be used. Before 1.8 there was no difference between this two.
  2. Neeraj Gupta 2012-03-07

    The row property should exist regardless of how the table view row was created. The rowData property should only exist when the old method of row creation is used (via setting the data property on the TableViewProxy).
  3. Ivan Skugor 2012-03-08

    Ah, I see, thanks for clarifying that. Could that be mentioned in documentation?
  4. Neeraj Gupta 2012-03-08

    Will do.
  5. Ketan Majmudar 2012-03-20

    +1 on adding that to documentation - just ran into this problem tonight and finding issues between android and iOS recognising rowData.
  6. Mauro Parra-Miranda 2012-05-08

    Tested with 2.1CI 2.0.2CI with the client's code. Working fine. Closing as per Alan's request.
  7. Allen Yeung 2012-05-23

    The classname property does not stay consistent in both cases since we manually set it to normal in one of the cases. There is a bug filed for this: TIMOB-9208

JSON Source