I’ve been trying to implement client-side filtering of a tableview in Titanium without success.
I’ve got three buttons that are displayed in the Navigation bar that when clicked need to filter the table view rows.
The problem is not deciding which row to show/hide it’s the actual code to hide/show a row.
Titanium API docs for TableViewRow list show() and hide() methods but they don’t see to work.
I can use the tableview’s deleteRow method to delete the row but that means it also gets removed from the datasource which makes it impossible to show again without reloading the tableview data from the remote datasource.
i would filter on the data you have in your tableview and assign the filtered data to the tableview each time you want to filter like that: