Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: [FIXED-271] Ext.Picker with slots value not working

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Nov 2008
    Posts
    42
    Vote Rating
    0
      0  

    Question [FIXED-271] Ext.Picker with slots value not working

    Hi,

    I was working sencha touch 0.93 beta release and my Ext.Picker functionality was working.
    Today I downloaded the latest 0.94 release. My Ext.Picker code is as follows:
    Code:
        sqftPicker = new Ext.Picker({
            modal:true,
            hideOnMaskTap: true,
            useTitles: true,     
            slots:[{
                title: 'From',
                name: 'from',
                align: 'left',
                items: [{text:"", value:""}, {text:"No Min", value:"No Min"},{text:"250",value:"250"},{text:"500",value:"500"},
                {text:"1000",value:"1000"},{text:"1500",value:"1500"},{text:"2000",value:"2000"},{text:"3000",value:"3000"},{text:"5000",value:"5000"}]
            },{
                title: 'To',
                name: 'to',
                align: 'right',
                items: [{text:"", value:""}, {text:"No Max", value:"No Max"},{text:"500",value:"500"},{text:"1000",value:"1000"},
                        {text:"2000",value:"2000"},{text:"3000",value:"3000"},{text:"4000",value:"4000"},{text:"5000",value:"5000"},{text:"7500",value:"7500"},{text:"10000+",value:"10000+"}]
            }]
        });
    Can someone let me know where is the bug?. Generally in 0.93 it used to display the picker with the specificed values in slots array, but now its displaying an empty picker.

    Thanks,
    Ankur

  2. #2
    Ext User
    Join Date
    Nov 2008
    Posts
    42
    Vote Rating
    0
      0  

    Default

    HI,

    I modified my code and its working now:
    Code:
        sqftPicker = new Ext.Picker({
            modal:true,
            useTitles: true,     
            showDoneButton: false,
            slots:[{
                title: 'From',
                name: 'from',
                align: 'center',
                data: [{text:"No Min", value:"No Min"},{text:"250",value:"250"},{text:"500",value:"500"},
                {text:"1000",value:"1000"},{text:"1500",value:"1500"},{text:"2000",value:"2000"},{text:"3000",value:"3000"},{text:"5000",value:"5000"}]
            },{
                title: 'To',
                name: 'to',
                align: 'center',
                data: [{text:"No Max", value:"No Max"},{text:"500",value:"500"},{text:"1000",value:"1000"},
                        {text:"2000",value:"2000"},{text:"3000",value:"3000"},{text:"4000",value:"4000"},{text:"5000",value:"5000"},{text:"7500",value:"7500"},{text:"10000+",value:"10000+"}]
            }],
            dockedItems: [{
                xtype: 'toolbar',
                dock: 'top',
                title: 'Sq.Ft.',
                // custom alignment of titlebar to left
                titleCls: 'x-toolbar-title x-toolbar-left',
                
                // alignment of the button to the right via
                // flexed components
                items: [{xtype: 'component', flex: 1},{
                    xtype: 'button',
                    ui: 'action',
                    text: 'Done',
                    handler: function() {
                        var v = sqftPicker.getValue();
                        if(v.to != "10000+" && v.to != "No Max" && v.from != "No Min"){
                          if(parseInt(v.from)> parseInt(v.to)){
                            isSqFtError=true;
                              sqftPicker.hide();
                              showErrorMessage("From cannot be greater than To value.",120);
                              return;
                          }                        
                        }
                        Ext.get("filterSqFtID").setHTML(v.from +"-"+v.to);
                        sqftPicker.hide();
    //                    alert(Ext.encode(v));
                    }
                }]
            }]        
        });
    But i dont see the TITLE for any columns, do i need to do anything specific?



    Quote Originally Posted by ankuravlani View Post
    Hi,

    I was working sencha touch 0.93 beta release and my Ext.Picker functionality was working.
    Today I downloaded the latest 0.94 release. My Ext.Picker code is as follows:
    Code:
        sqftPicker = new Ext.Picker({
            modal:true,
            hideOnMaskTap: true,
            useTitles: true,     
            slots:[{
                title: 'From',
                name: 'from',
                align: 'left',
                items: [{text:"", value:""}, {text:"No Min", value:"No Min"},{text:"250",value:"250"},{text:"500",value:"500"},
                {text:"1000",value:"1000"},{text:"1500",value:"1500"},{text:"2000",value:"2000"},{text:"3000",value:"3000"},{text:"5000",value:"5000"}]
            },{
                title: 'To',
                name: 'to',
                align: 'right',
                items: [{text:"", value:""}, {text:"No Max", value:"No Max"},{text:"500",value:"500"},{text:"1000",value:"1000"},
                        {text:"2000",value:"2000"},{text:"3000",value:"3000"},{text:"4000",value:"4000"},{text:"5000",value:"5000"},{text:"7500",value:"7500"},{text:"10000+",value:"10000+"}]
            }]
        });
    Can someone let me know where is the bug?. Generally in 0.93 it used to display the picker with the specificed values in slots array, but now its displaying an empty picker.

    Thanks,
    Ankur

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    I believe the parameter is 'text' now instead of 'title' for the slot config.

  4. #4
    Ext User
    Join Date
    Nov 2008
    Posts
    42
    Vote Rating
    0
      0  

    Question

    I tried with both text and title, but it doesnt show up. Also on android the picker doesnt show up completely it gets hidden below, not sure why. I havent specified any height for the picker.

  5. #5
    Ext User
    Join Date
    Nov 2008
    Posts
    42
    Vote Rating
    0
      0  

    Question Ext.Picker not working in 0.94 release in Android.

    I am developing a app for android with sencha touch. I downloaded the latest 0.94 touch release. The picker used to work properly till 0.93 release. Now in 0.94 after making the required modifications to Picker it looks as follows:

    pickerIssue.png

    The code for the picker is as follows:
    Code:
        sqftPicker = new Ext.Picker({
            modal:true,
            minHeight:'440',
            height:'440',
            slots:[{
                name: 'Sqft from',
                align:'center',
                data: [{text:"No Min", value:"No Min"},{text:"250",value:"250"},{text:"500",value:"500"},
                {text:"1000",value:"1000"},{text:"1500",value:"1500"},{text:"2000",value:"2000"},{text:"3000",value:"3000"},{text:"5000",value:"5000"}]
            },{
                name: 'Sqft to',
                align:'center',
                data: [{text:"No Max", value:"No Max"},{text:"500",value:"500"},{text:"1000",value:"1000"},
                        {text:"2000",value:"2000"},{text:"3000",value:"3000"},{text:"4000",value:"4000"},{text:"5000",value:"5000"},{text:"7500",value:"7500"},{text:"10000+",value:"10000+"}]
            }]
        });
    What modifications are required to make the picker look good?

    Thanks and regards,
    Ankur.

  6. #6
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    145
      0  

    Default

    What version of Android/what phone are you using?
    Aaron Conran
    @aconran

  7. #7
    Ext User
    Join Date
    Nov 2008
    Posts
    42
    Vote Rating
    0
      0  

    Default

    I am using Motorola Droid, firmware version is 2.1-update1.

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

    Default

    Looks like more folks are encountering this problem:
    http://www.sencha.com/forum/showthre...n-version-0.94.

  9. #9
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    145
      0  

    Default

    We've done some work for Android 2.1 that could possibly fix your issue. Could you please test Monday's 0.95 release?
    Aaron Conran
    @aconran

  10. #10
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    11
      0  

    Default

    We have added back in support for Picker slots to have titles. Your example should work again with the next release (0.95).

Page 1 of 2 12 LastLast

Similar Threads

  1. [FIXED][3.0] date picker throwing exceptions and acting funky
    By jay@moduscreate.com in forum Ext 2.x: Bugs
    Replies: 2
    Last Post: 19 Feb 2009, 2:48 AM
  2. [FIXED] [1.1] DateField picker in IE7 has display issues
    By cravemusic in forum Ext GWT: Bugs (1.x)
    Replies: 2
    Last Post: 27 Oct 2008, 8:45 PM
  3. Replies: 10
    Last Post: 12 May 2008, 8:46 AM
  4. help getting a date picker on a grid button working
    By deuce868 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Feb 2008, 10:49 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
  •