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

BlackBerry: No header text on TableViewSection

    Details

    • Sprint:
      2014 Sprint 11 SDK

      Description

      Description:
      1. Create a BB app with the following code:

       
      Titanium.UI.setBackgroundColor('#000');
       
      var tabGroup = Titanium.UI.createTabGroup();
       
      var win1 = Titanium.UI.createWindow({  
          title:'Test 1',
          backgroundColor:'#fff'
      });
      var tab1 = Titanium.UI.createTab({  
          icon:'KS_nav_views.png',
          title:'Test 1',
          window:win1
      });
       
      var table = Ti.UI.createTableView({
          width: Ti.UI.FILL,
          height: Ti.UI.FILL,
          data: [
                 {title: 'row 1', header: 'section 1', subHeader: 'sub header of section 1'},
                 {title: 'row 2'},
                 {title: 'row 3'},
                 {title: 'row 4'},
                 {title: 'row 5'},
                 {title: 'row 1', header: 'section 2'},
                 {title: 'row 2'},
                 {title: 'row 3'},
                 {title: 'row 4'},
                 {title: 'row 5'},
                 {title: 'row 1', header: 'section 3'},
                 {title: 'row 2'},
                 {title: 'row 3'},
                 {title: 'row 4'},
                 {title: 'row 5'},
                 {title: 'row 1', header: 'section 4', subHeader: 'sub header of section 4'},
                 {title: 'row 2'},
                 {title: 'row 3'},
                 {title: 'row 4'},
                 {title: 'row 5'},
                 {title: 'row 1', header: 'section 5'},
                 {title: 'row 2'},
                 {title: 'row 3'},
                 {title: 'row 4'},
                 {title: 'row 5'}
                 ]
      });
       
      win1.add(table);
       
      var win2 = Titanium.UI.createWindow({  
          title:'Test 2',
          backgroundColor:'#fff'
      });
      var tab2 = Titanium.UI.createTab({  
          icon:'KS_nav_ui.png',
          title:'Test 2',
          window:win2
      });
       
      var d = [];
      for(var i = 0; i < 10; i++) {
          var section = Ti.UI.createTableViewSection({
              title: 'Hello section number ' + i,
              subTitle: 'This is a subtitle for section #' + i
          });
           
          for(var a = 0; a < 10; a++) {
              section.add(Ti.UI.createTableViewRow({
                  title: 'Section #' + i + ' Row #' + a
              }));
          }
          d.push(section);
      }
       
      var table1 = Ti.UI.createTableView({
          width: Ti.UI.FILL,
          height: Ti.UI.FILL,
          data: d
      });
       
      win2.add(table1);
       
      tabGroup.addTab(tab1);  
      tabGroup.addTab(tab2);  
       
      tabGroup.open();
      

      2. Build & run on BB device/simulator
      3. Go To test 2 tab.
      4. Look at the header for sections

      Actual result:
      1. We do not see the headers for sections instead we get header same as the subTitle.
      This happens only for Ti.UI.createTableViewSection not for Ti.UI.createTableView

        Attachments

          Activity

            People

            • Assignee:
              penrique Pedro Enrique (Inactive)
              Reporter:
              lokeshchdhry Lokesh Choudhary (Inactive)
              Reviewer:
              Pedro Enrique (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration