Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24126] Windows: Adding a searchbar to a tableview or listview search property should also add it to the window

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-01-28T04:33:35.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelseng-priority, parity, qe-6.0.0
ReporterEwan Harris
AssigneeKota Iguchi
Created2016-11-09T14:53:33.000+0000
Updated2017-02-06T18:46:51.000+0000

Description

Description

When setting a searchbar to the search property of a tableview or a listview Android and iOS will add the searchbar to the view for a user.
var _window = Ti.UI.createWindow();
var searchBar = Ti.UI.createSearchBar({
});

var tableView = Ti.UI.createTableView({
    search: searchBar,
    data: [{title: 'Test1'}, {title: 'Test2'}]
});
_window.add(tableView);
_window.open();

Steps to reproduce

Add the above code to an existing app.js

Build for Windows platform

Actual result

Searchview is not added to the view unless a developer explicitly does so

Expected result

Searchview should be added to the view when added to a tableview/listview

Attachments

FileDateSize
6.1.0.v20170202120400.PNG2017-02-06T18:18:10.000+000029240

Comments

  1. Gary Mathews 2017-01-26

    master: https://github.com/appcelerator/titanium_mobile_windows/pull/936
  2. Abir Mukherjee 2017-01-27

    [~kota] Which fixVersion is this going in? The field currently has "None".
  3. Kota Iguchi 2017-01-27

    This should go to 6.1.0. Updated.
  4. Samir Mohammed 2017-02-06

    Verified fixed with the code provided above, was able to see the search bar and use it to search for items in the tableview. !6.1.0.v20170202120400.PNG|thumbnail! *Environment*
       Phone : Lumia 640 LTE (RM-1073)
       Operating System:
       Name                        = Microsoft Windows 10 Pro
       Version                     = 10.0.14393
       Architecture                = 32bit
       

    CPUs = 4

    Memory = 17034395648 Node.js: Node.js Version = 4.6.0 npm Version = 2.15.9 Titanium SDK: SDK Version = 6.1.0.v20170202120400

JSON Source