Is there a way to reset the height (or size) of different rows in tableview after fetching data from a server?

I am using a ‘tableview’ widget to display my data and images. I do the following steps:

1> data = read from server (network.request).

2> render data in the rows of the tableview. If there is an image (say http://google.com/folder/image.png), I display a text (reading image) in this stage.

3> I make new request to download the image. Once the image is downloaded, I want to render the images back to the rows.

How can I reset/render only the part that has the images in the rows?

Hi @daviddiligent,

Well, the typical way is to just “refresh” all visible rows by calling “tableView:reloadData()”. But, if you want to do something much more detailed, i.e. only update a specific image in a specific row, you’ll need to do it programmatically by looping through the rows and looking for that image, or something similar to that.

https://docs.coronalabs.com/api/type/TableViewWidget/reloadData.html

Take care,

Brent

Hi @daviddiligent,

Well, the typical way is to just “refresh” all visible rows by calling “tableView:reloadData()”. But, if you want to do something much more detailed, i.e. only update a specific image in a specific row, you’ll need to do it programmatically by looping through the rows and looking for that image, or something similar to that.

https://docs.coronalabs.com/api/type/TableViewWidget/reloadData.html

Take care,

Brent