Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2246] Android: SearchBar not working with custom data row in TableView.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-05T23:33:02.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, bug
ReporterLuis Fernando Kalfels
AssigneeMauro Parra-Miranda
Created2012-12-05T15:59:21.000+0000
Updated2016-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

FileDateSize
Captura de Tela 2012-12-05 às 13.56.14.png2012-12-05T15:59:21.000+0000260687

Comments

  1. Luis Fernando Kalfels 2012-12-06

    Thanks for move the issue to Titanium Community and sorry for my mistake when I posted.
  2. Daniel Sefton 2013-04-05

    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!

JSON Source