Community Questions & Answers
Picker window is behind current window
I have a tabgroup and a window in front of the tab group. I've added a regular picker to the window. When I click on the picker to change the value, the options open behind the window so you can't see it. If I close the window and go back to the tab...
Picker android style doesn't work inside a ScrollableView
Can any help me to solve this ? ======== I want to use a Picker like Android style but i need put it inside a ScrollableView but when i do this, the picker doesn't work, only works if a set useSpinner:true, but this is a Picker like iOS and i dont want use...
Picker Custom UI
Hi there, Been searching around but have not found any info or doco on changing the picker UI? I have a date one setup but would like to modify the look of it as it is rather boring and considering the real estate the stupid thing takes up, i'm hoping...
Font Family Picker
I am planning to make font picker using Alloy but before I can start I have few question regarding this. How do I get the default list of font family e.g in android so I can display it for picking? If I use custom font, do I simply put the .otf file inside...
selected from picker
now i want open new window when the picker value = my selection in picker ~~~ var data =...
Picker example crash!
Hello everyone, I am testing the single picker and the multiple picker components through this code: ~~~ var win = Titanium.UI.createWindow({ backgroundColor:"#FFFFFF", exitOnClose:true }); var resultat =...
how to get the picker value
~~~ var data = []; data[0] = Ti.UI.createPickerRow({ title : 'Choose The Time Of Meal', custom_item : 'c' }); data[1] = Ti.UI.createPickerRow({ title : 'BreakFast', custom_item : 'b' }); data[2] = Ti.UI.createPickerRow({ title : 'Lunch', custom_item...
Is it possible to set the focus to just the hour or minute text box of a Time Picker?
The reason I ask is because I have a popup with just a single Time Picker on it. When the popup first displays it has the current time defaulted into it and the user may change it. However, upon changing the value in the picker if you, for example, still...
Picker height (number of visible rows)
Hi there, I'm trying to make a picker have less height, but if I'm transforming it with ~~~ Ti.UI.create2DMatrix().scale(1,0.4); ~~~ it will look very ugly because it's not he same scale So I need a picker to have 100% width (320px) and only like 60px...
how to Remove all rows from Picker?
how to Remove all rows from Picker ?? BTW it's plain data
How to create a custom picker using other controls
See [screenshot of custom picker](https://dl.dropboxusercontent.com/u/2733882/customPicker.png) I know there isn't a way to style the picker control in Titanium. This picker only needs to work on iOS (iPad only). I was thinking I could hack the TableView...
How does titanium calculate the height of a Picker {useSpinner: true} on Android?
Hi My goal is it do design an Android UI that looks similar on different devices (screen resolutions). Since it is not possible to set the dimensions of a Picker used as Spinner, my plan is to design around the picker. Therefor I need to be able to...
Setting Picker Value
Hi, I have the following code: ~~~ var selectedRow=1; var data = []; data[0]=Titanium.UI.createPickerRow({title:'Choose One',value:3}); data[1]=Titanium.UI.createPickerRow({title:'Example 1',value:2}); data[2]=Titanium.UI.createPickerRow({title:'Example...
Picker change event not firing on first select (mobile)
Hi all. I am populating a picker using a loop as follows: ~~~ var unionData = []; var unionPicker = Titanium.UI.createPicker({ top:65, width:160 }); function populateUnionPicker() { Titanium.API.debug('Populating union picker ... '); for(var...
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;...
Multiple selection drop down list
i want to create a multiple selectable drop down list. i should be able to select multiple options in that. can anybody help me ??? thank u
Callback in showDatePickerDialog fires twice
Hi all, In our Android apps we use similar code as below to let the user pick a date. However, we just found out that the callback is fired twice if you click the button at the button of the dialog window. Both callbacks will give something...
PICKER_TYPE_DATE_AND_TIME Not working completely.
I'm working on a app an need a date and time picker, so I tried to create one. I tried to following: ~~~ var date1picker = Ti.UI.createPicker({ type: Titanium.UI.PICKER_TYPE_DATE_AND_TIME }); self.add(date1picker); ~~~ But it doesn't seem to work. Is...
Retrieving value from Time Picker
Hi all, Ive been searching for an answer to this question all day and can't seem to find any anywhere in the forum, docs or google. I feel like the solution might be a simple one, in that case, bare with me. Simply put what I'm trying to do is retrieve...
Picker
Hi, I am using this picker type **Titanium.UI.PICKER_TYPE_COUNT_DOWN_TIMER** how can i get that value of **hours** and that **mins** ?
Dialog with Picker in Alloy?
Is there a way to build an OptionDialog that has a Picker for content rather than a list of button options? I'm not seeing it in the documentation. NP creating an OptionDialog, but I'd like to be able to have a date picker and or a long list of options in...
format24 property of Ti.UI.Picker not working on Android
On Android, I'm creating a TimePicker like this: ~~~ Ti.UI.createPicker({ value: time, type: Ti.UI.PICKER_TYPE_TIME, format24: true, locale: 'de-DE' }).showTimePickerDialog({ callback : function(e) { if(!e.cancel) { time =...
Show a picker list
Hi people, is posible to launch a picker window selection without show the picker control? Something like ~~~ MySelection= showPicker(['option1','option2',...]); ~~~ Android SDK 3.0.2
Picker refresh/recreate
Hi All, I seem to be having no luck in reloading/recreating a picker in tabGroup. I have an app with a number of tabs. One of the tabs (tab A) contains a picker populated using a function that pulls the content from a database, puts it in a...
How to get the row selected of a picker.
Hi, After displaying a picker I am using an event listener for a change in the picker value, and I need to get the value of the new row that the user selects. I need to assign the row number (not the row value) to the variable selectedrow, to then use it...
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...
Alert dialog appears immediately (without trigger)
Hi, Maybe someone can me help out. I created a picker to set a language (used for a web service). Because the data in my tableview is already set I want to inform the user to restart the app to have the language change applied. Therefore I added a...
How to clear/remove rows from a picker?
I have an app that has two picker controls in it, where selecting a value from the first picker should alter the rows in the second picker. However, I don't know how to remove existing rows from the second picker (or clear it out completely), I only know...
use of datepicker in dynamic tableview contain a data of tableviewrow
hii,i am using a picker in dynamic tableview so should i do.this is my code .n i want to use picker in birthday field.Please solve it. Titanium.UI.setBackgroundColor('#000'); var win1 = Titanium.UI.createWindow({ title:'Tab 1', ...
Create dropdown
i am new to the titanium , i have requirement of developing dropdown ,which contains data, so that user can select any1 of them in the login page.pls anybody help in this issue.its very urgent
how to use e.value.toLocaleDateString get date and getMonth.
Hi, I'm use date picker. I use datePicker.addEventListener('change', function(e) {}); to get date. I use ~~~ defaultValue = e.value; Ti.API.info("defaultValue.getDate():"+defaultValue.getDate()); ~~~ The date is less one day. Today is Mon...
View in the picker...is it possible???
mobile sdk version:3.0.2 platform:android for mobile application can we add views to the picker?? i want to create a picker in which i will need a view which has a label and a switch. based on the value of the switch i can select more than one row at a...
Event change doesn't fire on dynamically populated Picker - Titanium SDK
I'm trying to create a custom Picker whose data is from a remote JSON. The problem is that it doesn't fire the 'change' event on the picker at the first time when I select a row from the picker, I have to close the picker and select a row from the picker...
[WARN] New layout set while view [object TiUIView] animating: Will relayout after animation.
I have encounter this problem. I still not resolve. The problem is meaning the animation show, but view have not create. I move picker animation position. But the problem still exist. How to resolve this problem? thank you very much. app.js have a...
DATE PICKER VALUE
Hi...!!! I have got a small problem in my app, please a have a look and see what can be the solution. I am creating a "DatePicker" in my android app and on its "change" event listener I am trying to alert the value of picker but what...
how to create a Drop down box
how to create a drop down box in titanium appcelerator using picker??? can anyone help me with a small example. I'm using Alloy framework for this. Thank You
Android Picker Not Filling w/ Data
I am trying to create custom datepicker for Android (I know it has a native type for doing this, but that has not been working...). The below code only prints one empty column; the rest of the columns are hidden. Does anyone have any insight on why this...
Modal picker from Form.js module (episode 10) does not work in iOs
How can I modal picker to work, it is not responding to touch events. [The form.js module (episode 10): ](http://developer.appcelerator.com/blog/2011/10/forging-titanium-episode-10-forms.html) The semimodalpicker.js ~~~ var stringToDate =...
How to set the date of a picker in Android after it is created?
I have a picker created as type "type: Ti.UI.PICKER_TYPE_DATE" When my window first displays I am fine with the current date showing. After some user interaction I might need to get a date from my data base and set the picker to the DB...
Time Picker with different of 7 minutes?
Hey, i am creating a picker instance with lang="de"... Every date i wanna assign to it, is correct - but the minutes aren't... it's always a difference of 7 minutes. :/ Anything i missed? (On Info-Output every date is right - just the time...
Define font size in Picker
So, I have a picker with 6 rows. I would like to define the font size of the word that appears when in the picker when one of the options is selected.. App for android. Thanks
pickerRow reload, refresh Android
Hello I have a picker that feeds on another picker, the problem is that it does not cool the second picker, followed by the rows added to picker. I could develop myself, is to create a picker, and then a pickerColumn pickerRow, then ask before a condition...
How can I adjust the number of rows visible in picker (iOS)
I have a tight spot to squeeze this picker into ... the height you can see is small but it defaults to show 5 rows which is way too big ... I changed the Visible items but it still defaults to 5 .... how can I change it to 2 rows ... my preference would be...
Lock scrollview
Hi, Is it possible to lock a scrollview? I have a scrollview with several views in. In one of the views, I have a picker with spinner:true. But I cant select anything in it. Because every time i try to scoll the picker, the hole scrollview scrolls. So is...
PickerView on top of TabGroup
Hello! Does anyone has this issue where you have pickerview sliding from the bottom of your view, but it's partially covered by the bottom TabGroup bar which sits in the parent view. Is there a way to show pickerview on top of Tab bar or I have to hide it...
MobileWeb and Pickers...
I was trying to use a date picker in MobileWeb, however, even though the picker renders properly, the values don't seem to be available... (getting errors where the picker doesn't pass the value that is clicked). I imported the latest Kitchen Sink to take...
Date picker with box calendar like days on the right
Application type: mobile, Titanium SDK: 3.0, Platform & version: Android 4.1, Device: Samsung S3 when using the date picker i get a picker with three columns (day, month and year) but ALSO i am getting a calendar like box on the right containing...
Disable picker row?
On the [man page](http://docs.appcelerator.com/titanium/2.1/#!/api/Titanium.UI.PickerRow) for PickerRow I see properties for things such as backgroundDisabledImage and backgroundDisabledColor, but I do not see a property or method for actually disabling a...
Refresh a picker view based on another picker
Hello, I have two picker views which comes on the click of two buttons respectively .I want to change the rows of one picker based on the selection of another picker. Here is my code which i [tried](http://pastebin.com/uR9jTx9d).
Refresh a picker row
Hi all, I have two pickers for example picker A and picker B . I have to change the Picker B rows based on the selection of Picker A rows. What is the most efficient way to do it ?