1. #1
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    254
    Vote Rating
    -1
    Answers
    1
    nak1 is an unknown quantity at this point

      0  

    Default Unanswered: Ext.field.Select: label not appearing

    Unanswered: Ext.field.Select: label not appearing


    I recently used the Ext.field.Select element and noticed, that unlike the other fields, it wasn't rendering out the label. Is there a way to get this to properly display?
    No longer a Newbie

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    This is working for me:

    Code:
    var form = Ext.create('Ext.form.Panel', {
        fullscreen : true,
        items      : [
            {
                xtype   : 'selectfield',
                label   : 'Select',
                options : [
                    { text : 'First Option',  value : 'first'  },
                    { text : 'Second Option', value : 'second' },
                    { text : 'Third Option',  value : 'third'  }
                ]
            }
        ]
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User nak1's Avatar
    Join Date
    Jan 2008
    Posts
    254
    Vote Rating
    -1
    Answers
    1
    nak1 is an unknown quantity at this point

      0  

    Default


    I found the cause of the issue (although I can't really explain why). I am currently on Sencha Touch pr3 2 release and I decide to port over the Ext.ux.touch.PagingToolbar code you wrote for 1x. It though I had it working well, but apparently the call to createSelectField, causes the Ext.field.Select fields throughout the application to behave erratically. When I comment out that call, the Ext.field.Select object works well in the other forms. Bizarre.
    No longer a Newbie

  4. #4
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,156
    Vote Rating
    4
    Answers
    93
    rdougan is on a distinguished road

      0  

    Default


    What does your createSelectField do?
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Quote Originally Posted by rdougan View Post
    What does your createSelectField do?
    Code:
    	createSelectField: function() {
    		return {
    			name      : 'pt-options',
    			options   : [
    				{ text: 'Go to', value: null }
    			],
    			listeners : {
    				scope  : this,
    				change : this.onPageChoose
    			}
    		};
    	},
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.