[AC-2246] Android: SearchBar not working with custom data row in TableView.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-04-05T23:33:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, bug |
Reporter | Luis Fernando Kalfels |
Assignee | Mauro Parra-Miranda |
Created | 2012-12-05T15:59:21.000+0000 |
Updated | 2016-03-08T07:41:14.000+0000 |
Description
Hi, I created a tableview with custom lines, data from an external XML via XHR.
By feeding these lines add the following code to the possible combinations of search:
row.filter = labelCode.text + " " + labelTitle.text + " " + labelLocal.text + " " + labelVenda.text;
My tableView is set this way:
var data = [];
var tableView = Titanium.UI.createTableView({
data:data,
top:'20dp',
backgroundColor: 'transparent',
search:search,
filterAttribute: 'filter',
});
When you type something in the SearchBar is triggered:
search.addEventListener('change',function(e){
return e.value;
});
However, the tableView is still showing the same results, does not filter content searched, as attached image.
Attachments
File | Date | Size |
---|---|---|
Captura de Tela 2012-12-05 às 13.56.14.png | 2012-12-05T15:59:21.000+0000 | 260687 |
Thanks for move the issue to Titanium Community and sorry for my mistake when I posted.
Hi, Please can you provide a complete runnable sample for this? Either as a simple app.js, or project. Also, could you try against 3.0.2 GA to see if it still occurs? Thanks!