" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Alternating Color of Each Row in TableView Using Titanium

Posted on November 23rd, 2015 by Raju Mahato

If we need to show data in row format, usually we use TableView in Titanium to build crossplatform application where we some time give alternate row color to each row. Here is code snippet to describing the scenario. Code Block : //Define the current window var currentWin = Ti.UI.currentWindow; //Array variable having row data var […]

Get Number of Rows of a TableView in Crossplatform App Using Titanium

Posted on November 23rd, 2015 by Raju Mahato

Its very common for a developer to deal with table and its rows and to know about the number of rows present in the table. I have often faced problems related to this. Finally I got the solution which is described below. CODE BLOCK : //Define current window var currentWin = Ti.UI.currentWindow; //Define table view var dataTable = […]

Display Delete Button On A Row While Swiping That Row In A Tableview Using Titanium

Posted on November 23rd, 2015 by Raju Mahato

Most of the times, we show item list in a tableview and it is also a common scenario for a developer to  need to edit/delete/update a row on click of that row. Here is a trick describing how to display a delete button when we swipe that row. . //Define current window var currentWin = Ti.UI.currentWindow; //Define rows for a tableview […]

Displaying rows with section in table view using Alloy.

Posted on November 23rd, 2015 by Raju Mahato

Introduction : Generally table view is used to display data in different rows and its very common to have rows under sections like all the name of states will be displayed under state sections, all the name cities listed under city section. Description : Lets have a window with a table. And we will add […]

Tableview with Alloy using Titanium

Posted on November 23rd, 2015 by Raju Mahato

Introduction : Tableview is a very common UI element used to display data in table row format. It is used to display information as organised section and row format. Description : Lets have a window where we will define a table and will add few rows to it. CODE BLOCK : index.xml <Alloy> <Window backgroundColor=’red’> […]

Append section in tableview with Alloy using Titanium in Cross Platform App

Posted on November 23rd, 2015 by Raju Mahato

Introduction : Section in tableview used to categorised the rows to different category. Here I am going to describe the way to append new section at the end of a table. To do this Titanium provides methods appendSection which is associated with tableview API. Description : Here is how to append section lets create a scenario […]

Append row in tableview with Alloy using Titanium in Cross Platform App

Posted on November 23rd, 2015 by Raju Mahato

Introduction : There might be a condition where we need to add custom rows at the end of all rows in a table view. So here Titanium provides method associated with table view API which helps us to do the same job. Description : To describe the situation lets make a view with a tableview […]