Community Questions & Answers
TableViewRow - How to insert three views with data in one row?
Hi guys, I am stuck a bit here. I'd hope someone could help me out. In register.js I want every tableViewRow to have three cells (views) per line each cell has a width/height of 92. Each cell has a unique record from the database ex (car1, car2,...
Auto fit the row size of table to window size.
Hi. I've table in which rows have an image field and three labels. I'm not able to display them properly to fit different window sizes. How to make this possible?? my code is view.xml ~~~ <Window class="container" id= "win"...
Float label in a row.
Hi.. I'm trying to create a chat app. I'm using table to display the chat messages. I'd like to give alternate styles for chat of sender and receiver. I'd like to display the chat of sender in left and the receiver in right side of rows. Is there any...
TableView - "data" property
Hi all. I'm using Titanium 1.7.1, Android 2.2 (Samsung Galaxy Tab), Windows XP I've noticed that there is strange behavior of "TableView" data property. From Titanium documentation: > data | array | the data array of objects to be used for...
Button on a tableViewRow
Hi Everyone, I am creating a button and adding to a tableViewRow. I have many rows in my tableView. the button is invisible first which I did by making : ~~~ visible: false ~~~ When I click on a row the button should be visible. I am doing it as...
Loading images onto table row is very slow...
Hi Guys, When loading images (taken with iPhone camera) into a table row the app freezes for a few seconds. Im looking for a way to stop this by loading the images in a different method. What is the best way to get images into a table row without it...
title's size of a row of table view
Hi every body i have a little issue which is the size of the title of a row of table view i want to make it more visible than the usual but i dn't know which property i have to choose (width, font,...) nd how edit it i try some exemples until the...
adding image to a row of tableview
Hi every body i'm trying to add an image to the row of my table view but that dn't work with me when i make backgroundimage the image appears but it's too large i tried to make it in the folders "ressources/android/images/res-long-land-hdpi" it...
add event listener to custom row of a tableview
Hi every body i think that i have a simple problem i create a table view and add i want to add event listener to every row of the table I would like that each row links to a new fullscreen window.so i try this method but it didn't work the table...
Change row rightImage
Hello, Im creating dynamically a table with a contents of a json file, here is my code: ~~~ for (var i=0; i<jsonObj.waypoints.length; i++){ var row = Ti.UI.createTableViewRow({ color:'white', height:'60dp', rightImage:...
How do I get values from inputs in a Table View's row?
I have a 'create user' page below based on Kitchen Sink's "table_view_controls_2.js". I can't seem to be able to get the stored values once the user clicks on a 'Save' button. Try it out. Also if anyone can tell me why the textArea is not...
Problem with TableViewRow Height
Hi, I have a TableView with dynamic content, I added a label in the row with height:'auto' the problem is that I have many blank area between my rows ! I tried to change the label.height to Ti.UI.SIZE but no change, also a put Ti.UI.SIZE in the height...
how to access custom row(s) data via Alloy ?
hi, ive tried many/multiple ways to get this to work but just cant as yet, so would appreciate anyone's assistance. i have a view as follows : ~~~ "LBProw.xml" <Alloy> <TableViewRow id="LBProw" > <ScrollableView...
Delay appearing of table view rows
Hi all, my intent is to display the rows of a table view one after another with a delay of 1 second. The prevoius line should remain on screen and the table should scroll when new lines are added. The data is collected from an online php server and...
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...
TableViewRow overlaps a containing view on tap
I have got a bunch of table rows being created like this: ~~~ var row = Ti.UI.createTableViewRow({ backgroundColor: '#fff', selectedBackgroundColor: '#ddd', height: '40dip', hasChild: hasChild, hiddenText: title }); var rowLabel =...
Unable to get PickerRow data
Hi Everyone, I am just trying to do a simple task and that is I want to get the data of PickerRow. I have searched around and tried some different ways but unfortunately I am unable to get the data: Now I have used the following code: ~~~ for (var i=0;...
ScollableView, is this possible ?
Hi! I'd like to create this: ~~~ scrollableView.addEventListener('scroll', function(e){ scrollableView.movePrevious(); if (row2.left < (Titanium.Platform.displayCaps.platformWidth) / 2) { Ti.Android.currentActivity.startActivity(intent); ...
Swipe one row and open a page!
Hi! I'd like to know if it is possible to do a thing like this: [Press here please](http://www.riverstonelabs.com/android-swipe-contacts). In few words, when i swipe the row i want two things: 1) a new row swipes/scrolls on the first row 2) open a page I...
Infinite TableView
Hi there, not really a question but I read some Q&As in the past looking for a TableView which loads remote data piece by piece to provide better user experience instead loading all at once. Thats why I created a...
[iOS , SDK 3.0.2 ] Problem with click on tablewviewrow
Hello to all you guys! I have a problem with the click on tableviewrow, here is an example of one of my tableviewrow : [image row](http://img90.imageshack.us/img90/271/schermata20130424alle11.png) My problem is that when I press/click on row the...
Acces to the index of a Row after a click on a button
Hello, I create a tableview with some row. Into each row i have a view with many different object. One of the object is a button. I would like to know the index of the row when i click on this button but i do'nt know how to acces to the parent of the...
Create List/Tableview
I'm new to Titanium and am just wondering what the best way would be to achieve something like this:  I tried a function something like this, however I would want to have the text overlay the row backgrounds....
Remove empty rows from table
I have implemented search functionality on the table. when we search it working file but empty rows are exists on table search result. when we scroll more empty rows are show. I want to show only search result not with empty row.
Grouped TableView Row backgroundImage
I have a grouped TableView. I want to have a custom backgroundImage (a noise pattern) as my Row backgroundImage. If I set it, the rounded edges are not cropped. I want to avoid creating custom images for the first and last rows, and handling them in code...
Empty rows on android
Hi, I'm developing on android with sdk 3.0.0 and testing on galaxy s2 with android 2.3.4 my problem is in the rows of a tableView, i have empty rows or missing elements like you can see in this screen shot :...
Problems displaying a multi-column picker for android
Hi, I am having trouble geting a multi-column picker to display for an app I am building. When I run the code I get the following error (4 times because its the seme error for all four columns of the picker): [WARN][PickerColumnProxy( 375)] Unexpected...
Android TableView row separator has a random height
Even using Titanium mobile 1.5.1 SDK it is really hard to make a nice listview (and we all know this is the heart of apps!). Depending on font-size and row height values, rows separators alternate between 1 and 2px, sometimes separators are all 1 or 2px...
Animation problem.
Hi, I'm making a view, with buttons, to "animate in" when scrolled to the end of the tableview. The when I start scrolling again there is a "animate out" event starting. There are a couple of problems though: * Warning that says...
TableviewRot & touchstart doesn't work?
Hey, ~~~ var rootList = Ti.UI.createTableView({ top:0, left:0 }); self.container().add(rootList); var mainSection = Ti.UI.createTableViewSection({ }); for( var i=0; i<20; i++ ) { var row = Ti.UI.createTableViewRow({ title:'Hier steht...
Getting selected value from a row (not rowData) in a TableView
I managed to get the 'rows' array from a TableView. I know I can check if it is selected via rowData (which I can get via events). But how can I get the rowData from a row object (so that I can check if it is selected or not)? Is it possible?
Alloy - un-executed function
Hi everyone, I started using Titanium a week ago, and I have a problem with my first try ! I created an alloy project. The goal is only to print a table with the result of an sql request. The problem is that I don't know if my js function is ok, because...
Tableview selected background image on row
Hi All I am trying to get selected background image to work but it just wont work for me no matter how many options i try? I am trying below ~~~ var row = Ti.UI.createTableViewRow({ backgroundColor:'transparent', ...
RUNTIME ARRAY
Hi Everyone...!!! I have a small scenario and I'm struggling a lot with it as I'm new to titanium.. I have got a textfield and I want to store its value on button's click everytime in an array and that to into the system memory using the...
How to make a Rectangular Touch (Change The Highlighted View Color) behind a image in a specific row.
Any body please provide me some guidance to make a application.in which there are multiple row and if any user touch the image in any row only particular image row should be selected and also there should be a background rectangular highlighted area on...
Adding Rows after a new dynamicSection?
Hey, i wanna add rows dynamicly to dynamic sections... So something like list.insertSectionAdter( ...) and now i wanna add rows into this section - any idea to sovle this? I DO NOT wanna do it like section.add(row) and than assign the section to...
iPhone tableview select/highlight colour
Is it possible to remove or change the default blue colour of a table row when you touch it?
Uncheck if audioplayer's URL is different than partial remote link
Hi, After being helped on [this post](https://developer.appcelerator.com/question/147926/global-audioplayer-function), I'm trying to add URL's eventlisteners on my tabs. I'm using only one audioplayer on my 3 tabs app : - Radio (A button) - Playlist...
TableViewRow disable delete button on edit
I have a tableViewRow which is has the ability to change from position: ~~~ var row = Titanium.UI.createTableViewRow({ backgroundImage: "./images/priority_row_background.png", backgroundColor: "transparent", selectedColor:...
this var is doesn't work with me and give me forces closes !!!
this var is doesn't work with me and give me forces closes !!! var tbl_data = []; for (var i = 0; i < 10; i++) { var row = Ti.UI.createTableViewRow(); var label = Ti.UI.createLabel({ left: 10, text: 'Row ' + (i+1) }); var image =...
Custom TableView scoll (bug?)
Hi all, Every app with a custom TableView that I develop does have weird bug. - Tap and don't release on the last visible row (row index X) - Move your finger up and release (scroll up) - Tap (one short time) another row on the screen (row index Y) -...
Trying to delete SQLITE table row when clicking on Tableview delete button
Hi guys, I'm having a hard time trying to get the following working. I've got a bunch of data which is stored to a database file. Now I want to be able to delete when pressing the delete button on my Tableview row. Here's my code: ~~~ var window =...
Unable to read Data in EventListener from TableView with JSON Data
Hi, I have read for hours so many Q&A's and was looking for a solution for my porblem - without success. So I have to ask! Question: **How can i read the tablerow data in EventListener?** I just need my SMKs.SMK.id. Tried so many...
How to access labels in a row when a switch is touched
Hi, I've been looking for info on something I'm sure is simple. I have a table with rows gathered via RSS. Each row has two labels and a switch. When the switch is touched the event returns the switch object but I can't get the value of a label from the...
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...
Table Row with images in SDK 3
Hi, i have updated Titanium Studio to SDK 3.0.0.GA an now my remote images are not visible in my table row. my code: ~~~ var row = Titanium.UI.createTableViewRow(); row.backgroundImage = '../../images/iPhone/listeSchmal.png'; row.selectedBackgroundImage...
TableView Editable adds margin to row
When editing a tableview the rows get extra margin or padding, the inner elements are being moved to right. How can I disable this moving? Images: When normal: [normal](http://d.pr/i/bxSp) on editing: [on edit](http://d.pr/i/4RSN) How should I fix this?
Update a TableView Row propriety
Hi, i have this tableView: ~~~ var tabellaGare = Titanium.UI.createTableView({ top: '0', separatorColor: 'black', backgroundColor: '#27344F', editable: false, data:elencoGare, search: searchbar, hideSearchOnSelection:...
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({ ...
tableview rowdata inside eventlistener in Android
In iOS I am using this code and it works fine: ~~~ .. row.id = data.articles[i].id; newArray.push(row); .. tableView.setData(newArray); .. tableView.addEventListener('click',function(e){ //alert('e.rowData.id: '+e.rowData.id) var w =...