Results 1 to 4 of 4

Thread: Picker items not showing in 2.1.0

    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default Picker items not showing in 2.1.0

    I have a question about the Picker in the sencha touch 2.1.0, it seems a bug to me.
    and this is my code in my controller, triggered by a button action.
    PHP Code:
    var picker Ext.Viewport.add
                                       {           
                                           
    xtype'picker',            
                                           
    height 500,            
                                           
    doneButton'Choose',            
                                           
    cancelButtontrue,            
                                           
    toolbar: {                
                                                           
    ui'light',                
                                                           
    title'Choose a Customer'            
                                          
    },            
                                          
    slots: [                   
                                                      {                        
                                                         
    name 'customer',                        
                                                         
    title'Customer',                       
                                                          
    data : [                            
                                                                      {
    text'Test1'value50},                            
                                                                      {
    text'Test2'value100},                            
                                                                      {
    text'Test3'value200},                            
                                                                      {
    text'Test4'value300},                            
                                                                      {
    text'Test5'value300},                            
                                                                      {
    text'Test6'value300}                       
                                                                    ]                    
                                 }           
                       ]        
        }); 
    and no matter how I set the the slots (in config and out of config), the slots items wont show up! this is the screenshot.
    Attachment 40449

    and the same code, if I use ST 2.0.1, it will show up without problem. like below
    Attachment 40450

    I also found, in the ST 2.1.0, if I put the slots into the config, then picker.getSlots() wont return any items, but if it is outside of config, then getSlots() does return the items, is it supposed to be in config??

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Vote Rating
    1367
      0  

    Default

    Using your code with 2.1.0 (no custom CSS) it works for me:

    Screen Shot 2012-11-29 at 12.31.44 PM.jpg
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default what is ur st version

    Is it ST2 .1.0 beta3?

  4. #4
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Vote Rating
    1367
      0  

    Default

    no, 2.1.0
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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