Community Questions & Answers
How do I get the index of a TableViewRow?
I'm trying to use TableView#insertRowBefore() which requires a table row index. How do I get the index of a TableViewRow?
Buttons on tableView using tableViewRow
I have a following code snippet: var win = Ti.UI.createWindow({backgroundColor:'white'}); var row = Ti.UI.createTableViewRow(); var table = Ti.UI.createTableView({width:200,height:150,borderWidth:1,borderColor:'red'}); var but =...
Count hasCheck in multiselect(tableview).
Im having a problem with the counting of how many hasChecks are "true" in a multiselect(tableview). I need to limit the amount of options selected. Code: ~~~ var mSelOpts = Ti.UI.createTableView({ ...
How to apply Strike Line on tableview row
Hi All, I need to apply a strike line on tableview row, once I clicked on the checkbox in that tableview row. Here is the link for image, how I want to display. Image Link :...
Prohibit TableViewSection Repeats on Alloy DataBinding
Hi there- I have what I believe should be a simple question. I am doing a databind to a REST collection. The query works as expected, I receive my results, and the results print to my TableViewRows. I have my rows within a TableViewSection for grouping...
how to get server data from database to tableview
~~~ Ti.UI.setBackgroundColor('#fff'); var win=Ti.UI.createWindow({ backgroundColor:'#fff' }); var data=[]; var xhr=Ti.Network.createHTTPClient(); var url='http://example.com'; xhr.onload=function(){ var...
TableView and Table View Row
HI i'm trying to add row to table using for loop but it is not happening find the below code ~~~ var tabelarray = []; //alert('Sorry, we could not upload your photo! Please try again.'); var table = Ti.UI.createTableView({ backgroundColor...
Webview in TableViewRow - not responding to first click on Android
Hi, I have a tableview with ~40 normal tableviewrows, each row has it's own event listener. Every 5th tableviewrow is a different type of row, with a webview showing an advertisement. The advertisement is an animated gif inside a hyperlink. I need the...
Tableview swipe to delete
Hi guys, I know that in tableview view, if i set the editable to be true, i can swipe the row i want to delete and the delete button will appear. But now, I want to know if I can add other button when i swipe? For example, when i swipe the row, instead...
opening a new window in a table view
I have 30 rows in my tableview,if I click on rows every row should open a seperate window with different text in that.Can anyone suggest me pls.
Can't set Ti.UI.SIZE to tableViewRows heigth - Android.
If I set Ti.UI.SIZE to the height of the row the tableView is not working. I have searched about this and it seemed to be a resolved bug(JIRA) but still seems to be a problem. SDK. 3.1.0GA Android 4.1.2 ~~~ var r = Ti.UI.createTableViewRow({ ...
JSON to TableViewRows with Headers/Filtering in Alloy project
I have a JSON object that contains a collection of records that all have date properties. I'm able to easily create a TableView to display the collection. I'd like to add custom headers to the TableView for each date. It needs to be custom headers because...
Access Row Children after append row is called
Hi Guys Essentially I am scanning a barcode, which adds a row to a tableview with the information from an API. I would like to then access these new rows and submit them to a different API. THe trouble I am facing is, I can't figure out how to loop...
Problem to remove labels from an array who become a big allocation problem
Hi everyone, I am having some troubles with some allocations who keep growing with some labels inside an array. I use this array to feed a tableView. After closing I can remove all the tableviewRow from the memory but the labels keeps living. I tried to...
Cant set elements on vertical layout with alloy
I've been trying for hours now. I can't understand what I'm doing wrong. I'm trying to put 3 elements vertically aligned and nothing i change seems to affect the view. i've tried to add a view then table view, then tableViewRows, then set layouts vertical...
Can't click tableView row on empty space when checkbox added into the row
hi, i make simple tableview from this code: ~~~ function addTableViewRow(/*String*/ keterangan, /*String*/ jumlah, /*String*/ amount){ var tableViewRow = Titanium.UI.createTableViewRow({ height:'35dp', backgroundColor:(rowCount%2 === 0) ?...
Assertion failure in UITableView _endCellAnimationsWithContex
I got this error and I don't have any idea what it means I am using Titanium 3.1.0.GA I's happening when looping through a table and I am trying to push a value to an array stored originally in a tableviewrow object ~~~ [99982:1c103] *** Assertion...
Remove data from model cause Uncaught RangeError
Some code: ~~~ var items = Alloy.createCollection('preferences'); // Populate table on fetch model items.on('fetch', setTableData); // Listem to Collection's Events to commit the Model's changes within the persistence layer items.on('add', function(m){ ...
Android TableView crash!
Hi! I have 2 table views, A and B, when user selects an item from A, it passes the selected ID to B, B in turn use this ID, fetch model collections from database and display those models. Here is the code A: ~~~ var B =...
Button inside TableViewRow. How to get row.index
Hi, I have a button inside a TableViewRow and would like to get the row index when I click on that button. When I print out "e.source.parent" inside the button-click event I'll end up with "Ti.UI.TableViewRow" which should be right....
Andriod TableView Really SLOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I am using this function to add a row to a tableview, and each row has the following features: 1) Left Image (ImageView) 2) Background Image 3) Selected Image 4) Right Image (ImageView) Now it takes about 3 seconds just to show this view with this...
Disable selection/click/touch of single TableViewRow
I have a TableView with multiple rows. The top row we're just using as a heading and thus we don't want users to be able to click/tap it. Here's the code that generates the row: ~~~ var row = Titanium.UI.createTableViewRow({ height:...
Gradient background in TableViewRow will be go out of the borders
Hello. SDK: 3.1.0 Platform: iOS 6 Device: iOS simulator Host: OSX I have a problem that when I set backgroungGradient, it will take full width of the screen (not TableRow) and cover border-radius. **XML** ~~~ <!-- My Profile Settings...
iOS Options Table
I am starting to get familiar with appcelerator and I can't seem to find anything in the kitchensink app on how to do a specific function. I am trying to set up a table that is similar to how iOS sets up settings. Where a tableViewRow is clicked and it...
Android - rowData problem.
Im developing an Android app right now, already working for IOS. The thing is that the data from the tableView(rowData) is not pushing to the detailView. SDK. 3.1.0 "masteview.js": ~~~ tableView.addEventListener("click", function(e){ ...
Change Visibility or Show/Hide TableViewRow
How can you completely show or hide a row in a table?
Issues in handling data in multiple tableViews
Hello everybody.. I have got this issue for more than one week now. I am trying to get selected tableRows in second window on the basis of check in first window. The actual thing I am trying to do is to select some rows in first window and then show them...
[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...
Tableview cant add rows
I have a table declared in my xml, which is as follows: ~~~ <TableView id="goalsTable"> </TableView> ~~~ And then in my controller file i am trying to add rows, using this code: ~~~ for(var i = 0; i < 5; i++) { var row =...
Swipe events on tableviewrow
Hi all, I have a tableviewrow (iPad) inside a scrollableView. And i have the tableviewrow touchEnabled : false,. How to make the listeners when the user swipe down or up to change the row?
TableView: background color for row's footer
Hi, it's possible to set background color for a simple footer (see: "Close section one" footer). Below a simple example code: var tbl_data = [{title:'Row 1', header: 'Section one'}, {title:'Row 2'}, {title:'Row 3', footer:'Close section one'},...
Passing Row data to another window when clicked
i am beginner to titanium i have a list of record in the tableview, now what i want is when clicked on recored a new window open and the clicked record shown in it. i have no idea please help me.....
How to optimize contact list display
I have a table view, called 'contactList'. I have a database, with some lists, all of the same structure. The user is able to search within the 'superList', and my intent is that the result should be displayed in 'contactList'. To display all the...
Password field in TableViewRow only supports one character
I've got an Alloy view like the following, but as long as the password input is inside a `TableViewRow`, the maximum number of characters you can enter (certainly on the iOS Simulator) is one. It's not simply displaying a single character, it's messing...
tableView className Problem
Hello, i have a tableViewRow with a class name. on my tableView is an imageView this imageView has an event. on touching that imageView i dynamically change the image. however since the rows get reused due to the class property the changed image also shows...
Change background color of empty search result rows
Is it possible in anyway to change the background color of the empty tableview rows that fill up the remainder of a filtered search from a tableview? I can't find any documentation on it, and the only property the resulting rows seem to inherit are the...
How to set TableViewRow selectedColor property globally in Alloy
I want to set **TableViewRow selectedColor** property globally in Alloy. I have tried using the following way but it doesn't show me the actual color I am setting. It still shows default **Blue** color. **app.tss** ~~~ TableViewRow : { ...
dynamic data for each TableViewRow
I'm using alloy (markup and models) to construct a tableview, Everything works perfect ~~~ <Collection src="spot" /> <Window> <TableView id="spotTableView" dataCollection="spot"> ...
cant cancel TableViewRow selectedBackgroundColor on label click - iOS
Application type: mobile Titanium SDK: 3.0.2.GA, Platform & version: iOS 4.3.5, Device: iPode touch, i have a label in a TableViewRow with selectedBackgroundColor set. what i am trying to do is to avoid the change of the TableViewRow background...
Hide tableView row header in Android
I am using table view `filterAttribute` for search purpose. During the search operation unable to hide table row header (in iOS table row header will not be visible during the filter process). Here I have attached screen shot for reference. [output...
TableViewRow Background Image and Selected Image
I am having a problem getting my TableViewRows to display a specific graphic for the Selected row state. No matter what I do, they display a blue highlight that I want to disable. My TableView creation as follows: ~~~ var NavMenuOptions =...
Customized data with TableView + Row + Label or WebView?
I want to display data 500 list entires in my app. What is the best solution for this purpose? How a entry looks like:  I try two ways: 1. TableView + TableViewRow + Label /...
TableView Row Moving and Saving
My application currently loads TableViewRows from an internal database into a TableView. I am trying to figure out a way to be able to allow the end user to edit the order of the rows. I have already figured out how to do this by creating a button that...
TableViewRow className Reuse on Android: Switching ImageView Still Slow
I discovered TableViewRow className and TableViewRow reuse today. It greatly improves the performance of my TableView on both iPhone and Android. However for Android, if I scroll really fast, there is a noticeable delay in switching the right ImageView...
Android TableViewRow with className - images vanishes after scrolling!
Hi all, I have an app that uses tableViewRow, with an imageView (external URL) and text label - with a className. When it first load, the images appear fine but when I scroll down and then up again, the loaded images disappears?? I noticed if I remove...
Left - Right | Up - Down
Hi All, I need to have the some views in scrollable view for the user to scroll left or right and if he choose some view to swipe from top to bottom. Please see the image to understand my problem http://www.freeimagehosting.net/3y246
Swipe event not working on TableViewRow
I am trying to add a swipe event on tableviewrow, but it doesn't work. Code: ~~~ function getAddLitData(){ var par = 'message=[{"userID":"' + Ti.App.Properties.getString('userLoginID') + '"}]'; util.requestServer({ url :...
How to make Smooth Animation/Inteface for swipe in titanium
How can we make a smooth animation for swipe on table view row or some other view, which can work like charm as shown in the below url using titanium? [http://www.youtube.com/watch?v=CICMxwgm274](http://www.youtube.com/watch?v=CICMxwgm274) Thanks in advance
Dynamically displaying labels and values in rows of an undetermined number of item descriptive fields
Hi, I am working on an app that provides a lot of descriptive fields for an item. However, over time more descriptive fields will be added or changed so i do not want to hardcode anything to display because I would have to be changing things all the...
Label selected shadow color
I have a tableViewRow, which contains a label. The label has shadowColor and -Offset. If I tap the row, it will highlight, the label adjusts it's color to highlightedColor, but the shadow remains the same. Is there any way to change the color of the shadow...