Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24863

Windows: TableView.filterAttribute does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 6.1.0, Release 6.1.1
    • Fix Version/s: Release 7.0.0
    • Component/s: Windows
    • Labels:
      None
    • Environment:

      Ti SDK: 6.1.1.v20170619143158, 6.1.0.GA
      Appc Core: 6.2.2
      Appc NPM: 4.2.9
      Lumia 550 10.0
      10.0 ws-local

    • Story Points:
      5
    • Sprint:
      2017 Sprint 22 SDK, 2017 Sprint 23 SDK

      Description

      When searching in a TableView, the results are not displayed correctly if the tableviewrow does not have a title but is just made up of child elements, all that is shown is grey empty rows

      var win = Ti.UI.createWindow({
      	backgroundColor: '#fff'
      });
      var tableData = [];
      for (var i = 0, l = 100; i < l; i++) {
      	var row = Ti.UI.createTableViewRow({
      		_index: i
      	});
      	var titleLabel = Ti.UI.createLabel({
      		text: i
      	});
      	row.add(titleLabel);
      	tableData.push(row);
      }
      var tableSearch = Ti.UI.createSearchBar({
      	hintText: 'Search'
      });
      var tableView = Ti.UI.createTableView({
      	data: tableData,
      	filterAttribute: '_index',
      	search: tableSearch,
      });
      win.add(tableView);
      win.open()
      

      Steps to reproduce
      1. Add the above code to an existing app.js
      2. Build for Windows
      3. Search for something, (the search values will be numbers)
      Actual

      Empty grey rows are shown in the search dropdown

      Expected

      If possible the search dropdown rows should reflect the tableview rows, similar to iOS

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kiguchi Kota Iguchi
                Reporter:
                eharris Ewan Harris
                Reviewer:
                Gary Mathews
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-10809
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code