Community Questions & Answers

Expand / Enlarge tableview row

I have a tableView with a bunch of rows that contain labels. When clicking on a row I'd like to expand it, ie. increase its height, to be able to view all of the view's labels. The problem I have is that the text flashes (disappears for ~0.5 seconds) when...

Update table row dynamically

I created a page that holds current scores in a table view. I'm trying to get it to update the score for each row when the points are awarded. How would I go about changing the score for the third row for example? ~~~ var teamScore = getTeams(); var...

Problem with deleteRow and tableView

Hello, I want to delete a row on a tableview when i click on an alertDialog. The problem that the first click to deleteRow works fine, but the row deleted reappers again after a second click on another row. here is my list.js: ~~~ function getList () { ...

Display data from remote DB

Hi, i'm begineer on titanium's developpement. I have a tableview contains list of persons' name retrieved from remote database. when i click on each row of my tableview, i want to display only one information from remote database associeted for this row...

openDetail of json object

I am creating an application for fetching JSON data from REST API and display the data to Table View an i want to get the json object detail when i click on the tableviewrow index.js ~~~ function openDetail(e) { var controller =...

Add more rowData to TableView

I want a TableView that shows TableView A’s rowData as well as TableView B’s data. So basically append or “concatenate” them, I think. I tried this: ~~~ var dataFruits = [ {title:’Apple’, x:1148, y:1056}, {title:’Banana’, x:1218,...

Custom row tableview

Hi, I have a table with custom row items that i dynamically generated from a loop (items are a checkbox and two labels). The sample code is below. Now I want to get access to an element or item on a particular row when ever the checkbox on that same...

ListView minimum row height

Hello, It appears there is no way to control the minimum height of a given ListItem (on Android). Currently we need to display some custom rows that display auxiliary information. These items are to be small and discreet. Supplying properties such as...

Calculating total tableView height

Similar questions to this have been asked but as far as I can tell this has never been answered. Here is the problem. I have a tableView inside a scrollView and would like my scrollView to be about 20px taller than my tableView. All of the rows in my...

ListView complex layout

I have a tableview row that is rather complex, and in my striving toward a smoother experience I was wondering if this could be converted to a ListView. I keep taking a look but get completely confused when trying to convert. This is what I currently have...

Tableview row check

I've got an issue with the hasCheck parameter. Basicly i want to be able to check and uncheck a row with an eventlistener. The kitchensink had an example on how to check a specific row. My problem is the unchecking of the row, for some reason i cant get my...

Min Height

Hello, Titanium SDK version: 1.7.0.RC1 iPhone SDK version: 4.2 Is it possible to set a minimum height on a row? Like min-height in CSS? Thanks!

4,603 views
asked 3 years ago by James -
last activity 11 months ago

Click Event Propagation

When adding a view with buttons to a table row, is there anyway to stop the click event propagation so that it doesn't bubble up to the table row when I click a button. here's the example code below: ~~~ var row = Ti.UI.createTableViewRow({ ...

How to get row data

Hi everyone, I have a simple question. I have created rows and put that in table. ~~~ var data = []; // Here i have created the array. data.push(row); // here I have pushed rows in the data which means I have row's objects in the data. ~~~ Now my...

ListView with auto height row

Hi, I can't figure out how to set the row height of new ListView to 'auto'. Due to dynamic content, I can not set a fix height. I have tried it with 'auto', Ti.UI.SIZE and Ti.UI.FILL as item property but nothing works. Even if I wrap an auto-sized view...

Showing 1-50 of 301 1 2 3 4 5 6 7