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

Android: TableView data properties does not work inside the applyProperties.

    Details

      Description

      TableView data properties do not work inside the applyProperties. But it works as expected on iOS. It should work for both http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.TableView-method-applyProperties

      Steps to Reproduce:
      1.Run this code with the testing environment.
      2. And check data is loaded in the tableView or not?

      Testing Environment:
      Command-Line Interface, version 5.0.1,
      Ti SDK: 5.0.0.GA,
      Android Version: 4.2.2, 4.4.2, 5.1.0,
      Studio Version: 4.3.0

      Test Code:

      app.js

      var win = Ti.UI.createWindow({
      	backgroundColor : 'white'
      });
       
      // Create a TableView.
      var table = Ti.UI.createTableView({
      	//backgroundColor:'red',
      });
       
      var tableData = [{
      	title : 'Apples'
      }, {
      	title : 'Bananas'
      }, {
      	title : 'Carrots'
      }, {
      	title : 'Potatoes'
      }];
       
      table.applyProperties({
      	data : tableData,
      	backgroundColor : 'gray',
      	top : 50,
      	bottom : 20,
      	left : 20,
      	right : 20,
      	borderRadius : 10
      });
       
      //table.data = tableData;
       
      // Add to the parent view.
      win.add(table);
       
      win.open();
      
      

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              morahman Motiur Rahman
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code