Delete all rows in a tableview with a single click
Hi there,
has anyone a good way to "clear" the table?
I want to build a button which deletes all my rows, so that i can add some new data in my tableview.
2 Answers
-
Accepted Answer
Call the setData() method on the Titanium Tableview object (named tblExample below) like such:
tblExample.setData([]);
This will assign an empty array to the row data.
-
You can implement it simply by assigning " " to tableView Object