Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-697] Android: Updating rows with headers throws out-of-bounds error

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2012-07-25T13:50:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, defect, tableview
ReporterDon Thorp
AssigneeNeeraj Gupta
Created2011-04-15T02:34:43.000+0000
Updated2012-07-26T20:52:19.000+0000

Description

See http://developer.appcelerator.com/question/10131/android-tableview-updaterow-with-headers"> Q&A

Comments

  1. Todd 2011-04-15

    Android - there is no way to update and/or remove a section header. Even when the associated row(s) have been deleted.

  2. Todd 2011-04-15

    Kitchen sink code below from table_view_row_update.js - the updating of the 'header' does not work(Android). Also, on iPhone, setting the header value to '' - will delete the section header - which is perfect - just want to do the same in Android.

    var tableView = Titanium.UI.createTableView({data:data});
    tableView.addEventListener('click',function(e)
    {

       switch(e.index)
       {
           case 0:
           {
               var data = {title:'New Row 1 Title', header:'New Section Header'};
               tableView.updateRow(0,data);                
               break;
           }
       
  3. Ping Wang 2012-07-25

    Duplicate of TIMOB-691.

JSON Source