Video tutorial for counting total rows 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 tableview which have different section.

Code Block :

View : index.xml

Controller : Index.js

function showTotalRow(){
var allSection = $;
var totalRows = 0;
var count = 0;

for(count = 0; count < allsection.length; count++){
totalRows = allSection[count].rowCount;

alert('Total Rows : ' + totalRows);

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