Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9800] iOS: Should not exit search mode when click on tableview

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-06-26T18:37:59.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsiOS
Labelsapi
ReporterNikhil Sharma
AssigneeNeeraj Gupta
Created2012-06-26T01:27:39.000+0000
Updated2017-03-24T18:09:42.000+0000

Description

If I search for "aa" in the below code, I get to see only two rows. If I click on any of the rows, the search exits and the 4 rows gets visible again. In the real application, clicking on a row will load a new screen. The customer wants that, when you hit the back button, you come back on the table with the search still there.
var win = Titanium.UI.createWindow({  
    title:'Win 1',
    backgroundColor:'#fff'
});

var data = [{title:"aaa"}, {title:"bbb"}, {title:"ccc"}, {title:"aab"}];

var search = Titanium.UI.createSearchBar({
            hintText:'search',
            cancel:false,
});

var view = Titanium.UI.createTableView({
    data: data,
    search: search,
});

win.add(view);
win.open();

Comments

  1. Vishal Duggal 2012-06-26

    Look at hideSearchOnSelection property of tableView
  2. Lee Morris 2017-03-24

    Closing ticket as invalid.

JSON Source