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

Grouped Table does not honor background color of the table view

    Details

      Description

      {html}<div><p>On 3.2 the grouped table view does not honor background color
      property. The Rows will change color but the background around the
      view always stays gray.</p>
      <p>var win = Ti.UI.currentWindow;<br>
      win.backgroundColor = '#FFF';</p>
      <p>var data = [];</p>
      <p>for (var c=0;c<4;c++)<br>
      {</p>
      <pre>
      <code>data[c] = Ti.UI.createTableViewSection({headerTitle:'Group '+(c+1)});
      for (var x=0;x<10;x++)
      {
      data[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1),backgroundColor:'#FF0000'}));
      }</code>
      </pre>
      <p>}</p>
      <p>// create table view var tableview =
      Titanium.UI.createTableView({<br></p> <pre> <code>data:data, style: Titanium.UI.iPhone.TableViewStyle.GROUPED, backgroundColor:'transparent'</code> </pre> <p>});</p>
      <p>// create table view event listener
      tableview.addEventListener('click', function(e)<br>
      {</p>
      <pre>
      <code>// event data
      var index = e.index;
      var section = e.section;
      var row = e.row;
      var rowdata = e.rowData;
      if (section.headerTitle.indexOf('clicked')==-1)
      {
      section.headerTitle = section.headerTitle + ' (clicked)';
      }
      Titanium.UI.createAlertDialog({title:'Table View',message:'row ' + row + ' index ' + index + ' section ' + section + ' row data ' + rowdata}).show();</code>
      </pre>
      <p>});</p>
      <p>// add table view to the window
      Titanium.UI.currentWindow.add(tableview);</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              blainhamon Blain Hamon
              Reporter:
              ctredway1 ctredway
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration