Counting total rows in a table view having different section with Alloy using Titanium

Introduction
Table view may contain different sections where each of those section may contain several rows. Here I am describing the way to calculate total number of rows present in a table view which have different section.

Summary :
Now easily we can get the total number of rows present on a table view with Alloy using Titanium.

THAT’S IT

Written ByRaju Mahato, Software Developer, Mindfire Solutions

Row Count with Titanium in CrossPlatform Application

Introduction:-
We generally use table view API in titanium to display data in row manner but there might be a scenario where we need to take care about the number of rows. So here I will be describing different ways to count number of rows and sections present in table view.

Description:-
Sometime we might get data from some external API or any other source that needs to be bind with a table where we are unaware about the number of rows that are present in the API response. So let’s create a situation for a table view where we will get the number of rows and section defined for those rows using Alloy with Titanium. Lets have a window where we will have a table view with some static rows.

So in order to do so lets, take a view called index.xml and its controller called index.js.

Continue reading