PDA

View Full Version : Can’t select a value in a selectfield on mobile



MaleneMBJ
17 Dec 2010, 6:02 AM
Hey…
I have a problem with select a value in a selectfield when the app is running on a mobile, in a browser it works fine.

It loads the information dynamic through a web service, and then fill it in a selectfield.



var selectBox = new Ext.form.Select({
options: []
});

var GetDeliveryTimeByZipcode = function(zipcode) {
Ext.util.JSONP.request({
url: servicePath + 'Delivery.svc/GetDeliveryTimesByZip',
callbackKey: 'callback',
params: {
intZipCode: getCustomerInfo().ZipCode
},
callback: function (data) {

var options = new Array();

for (i = 0; i <= 4; i++) {
options.push({text: data[i] + ", fragt: 49,-", value: data[i]});
}

selectBox.setOptions(options);
}
});
}



{
xtype: 'fieldset',
title: 'Vælg leverings dag',
items: selectBox,
disabled: false,
}


hope someone can help me...:)

Draven
22 Dec 2010, 8:32 AM
I'm having the same issue. A select box works fine in Chrome but when I load it on my IPhone, Android or Blackberry it does nothing. Doesn't seem to listen for the tap to activate the dropdown.

MaleneMBJ
22 Dec 2010, 11:37 AM
I found a solution, if I wrote this instead, it works:



var selectBox = new Ext.form.Select({
options: [],
name: 'selectBox',
id: 'selectBox'
});





hope you can use it