Add Rows to TableView

You must Login before you can answer or comment on any questions.

One can initially add multiple rows to a table via the setData method. However, in order to append rows to the table it appears you must use the appendRow method. (Note: using the add method will not work because it does not accept arrays.)

Is there any way to append multiple rows (or multiple table sections) to a TableView that already has data in it by adding them all at once instead of doing it iteratively using appendRow?

Titanium v1.2.2, Android SDK 1.6, Screen WVGA854

— asked 2 years ago by Joe iEntry
2 Comments
  • Please state the 3rd-party mobile and Titanium SDK versions you are using, as you should whenever you post a question. The question tags are the best place for this information. See the Participating in the Q&A guide for tips on getting more accurate answers more quickly in these forums.

    — commented 2 years ago by Paul Dowsett

  • Thanks Paul--I was unware of that. May I be an example to all!

    — commented 2 years ago by Joe iEntry

1 Answer

i do not believe there is an alternate way to do it.

— answered 2 years ago by Aaron Saunders
answer permalink
1 Comment
  • we can also push data to temporary array . then push that array to tableviewdata. This can be alternate way but appendRow is simpler

    — commented 7 months ago by Muhammad Adnan

Your Answer

Think you can help? Login to answer this question!