TableView Row Color

Please disregard if this is a known issue.

It looks like the newest daily build (from 10/16/12) is not showing the row color in a TableView widget. I noticed the row lines disappeared post-upgrade and then I compiled the same code on an older version of Corona and they’re showing up as normal.

Anybody else experiencing this?

Thanks! [import]uid: 172008 topic_id: 32159 reply_id: 332159[/import]

I’m using 934 (10.12) and I"m seeing row divider lines at random times even though I have noLines=true. I also have noBackground = true and I get row backgrounds all the time. I sometimes get more tableRows than I expect. I’ll insert two rows and get a 3rd. I don’t know how:

for i = 1, 2 do  
 -- code to insert the row  
end  

can end up trying to render row #3.

I’m not sure how if I know of a work around to get your row colors all the time, but if want to be rid of them, add these two lines in your onRowRender() call:

 local row = event.target  
 local rowGroup = event.view  
 local id = event.index  
  
 print("on Row Render:", id)  
 rowGroup.background.isVisible = false   
 row.lineColor.isVisible = false  

Okay it was more like 6 lines, but you probably have the others already.
[import]uid: 19626 topic_id: 32159 reply_id: 128075[/import]

Thanks for the insight! I appreciate the example. I know the whole widgets library is still being tweaked so hopefully we’ll see some better stability in future releases. For now, I’ll just keep compiling on the version that works with the TableViews the way I need it to. :slight_smile: [import]uid: 172008 topic_id: 32159 reply_id: 128111[/import]

I’m using 934 (10.12) and I"m seeing row divider lines at random times even though I have noLines=true. I also have noBackground = true and I get row backgrounds all the time. I sometimes get more tableRows than I expect. I’ll insert two rows and get a 3rd. I don’t know how:

for i = 1, 2 do  
 -- code to insert the row  
end  

can end up trying to render row #3.

I’m not sure how if I know of a work around to get your row colors all the time, but if want to be rid of them, add these two lines in your onRowRender() call:

 local row = event.target  
 local rowGroup = event.view  
 local id = event.index  
  
 print("on Row Render:", id)  
 rowGroup.background.isVisible = false   
 row.lineColor.isVisible = false  

Okay it was more like 6 lines, but you probably have the others already.
[import]uid: 19626 topic_id: 32159 reply_id: 128075[/import]

Thanks for the insight! I appreciate the example. I know the whole widgets library is still being tweaked so hopefully we’ll see some better stability in future releases. For now, I’ll just keep compiling on the version that works with the TableViews the way I need it to. :slight_smile: [import]uid: 172008 topic_id: 32159 reply_id: 128111[/import]