Results 1 to 3 of 3

Thread: Cant select a value in a selectfield on mobile

  1. #1
    Ext User
    Join Date
    Dec 2010
    Posts
    3
    Vote Rating
    0
      0  

    Question Cant select a value in a selectfield on mobile

    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.

    Code:
    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: 'Vlg leverings dag',
    			items: selectBox,
    			disabled: false,
    		}
    hope someone can help me...

  2. #2
    Ext User
    Join Date
    Mar 2007
    Posts
    39
    Vote Rating
    0
      0  

    Default

    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.

  3. #3
    Ext User
    Join Date
    Dec 2010
    Posts
    3
    Vote Rating
    0
      0  

    Default Solution

    I found a solution, if I wrote this instead, it works:

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



    hope you can use it

Similar Threads

  1. adding option elements to selectfield
    By tubamanu in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 15 Dec 2010, 7:44 AM
  2. Selectfield With Normal Toolbar Button
    By peterbaker in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 15 Dec 2010, 7:05 AM
  3. selectfield
    By raul007 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 13 Dec 2010, 3:32 AM
  4. Mobile Web App Developer Contest at Mobile Developer Summit 2010
    By swagat321 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 17 Sep 2010, 8:35 PM
  5. Change an Item through an Selectfield
    By ballibum in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 18 Mar 2010, 3:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •