Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2180] iOS: Add search to index scrolling on TableView iOS

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionDuplicate
Resolution Date2013-11-11T20:32:14.000+0000
Affected Version/sRelease 1.5.0
Fix Version/sn/a
ComponentsiOS
Labelstbs-1.9.0
ReporterRalf Pfeiffer
AssigneeIngo Muschenetz
Created2011-04-15T03:12:54.000+0000
Updated2017-03-22T20:43:52.000+0000

Description

We have a request to add the search bar to the scroll index

See this ticket:
http://developer.appcelerator.com/helpdesk/view/50751">http://developer.appcelerator.com/helpdesk/view/50751

Comments

  1. Pedro Enrique 2011-04-15

    Updating ticket with another request:
    http://developer.appcelerator.com/helpdesk/view/71621">http://developer.appcelerator.com/helpdesk/view/71621

  2. Jeroen K. 2011-04-15

    Does the ticket Pedro links to means it's also pointed at in the helpdesk for premium subscribers? Will any headway on this be reflected on this ticket as well?

  3. Sindre Sorhus 2011-11-14

    Any updates on this? It's still missing from Ti 1.7.5 (iOS 4.3/5).

    Testcase

       Titanium.UI.setBackgroundColor('#000');
       
       var win = Titanium.UI.createWindow({  
           title: 'title',
           backgroundColor: '#fff'
       });
       
       win.open({
       	modal: true,
       	transition: false
       })
       
       var table = Ti.UI.createTableView({
       	search: Ti.UI.createSearchBar()
       });
       
       win.add(table);
       
       var fillTableView = function() {
       	var tableData = [];
       	var header = '';
       	var index = [];
       	var i = 0;
       	index.push({
       		title: '{search}',
       		index: -1
       	});
       	for ( var i = 0; i <= 20; i++ ) {
       		var row = Ti.UI.createTableViewRow({
       			title: 'test'
       		});
       		index.push({
       			title: i+'',
       			index: i
       		});
       		tableData.push( row );
       	}
       	table.data = tableData;
       	table.index = index;
       };
       
       fillTableView();
       
  4. Sindre Sorhus 2011-11-14

  5. Sindre Sorhus 2011-11-14

  6. Pedro Enrique 2013-11-11

  7. Lee Morris 2017-03-22

    Closing ticket as duplicate of the tickets that are mentioned above and has since been closed.

JSON Source