Showing posts with label tableview. Show all posts
Showing posts with label tableview. Show all posts

Thursday, March 28, 2013

Titanium TableView row count


How to get the number of rows in tableview with Titanium?
TableView default has one section. "table.data" is the section array.
If you don't create section, your rows are in "section 0".
Get the row count by

table.data[0].rows.length;

or

table.data[0].rowCount;