-
13 Dec 2011 9:30 AM #1
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
-
13 Dec 2011 12:09 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
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.
-
14 Dec 2011 7:35 AM #3
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
-
14 Dec 2011 9:25 PM #4
What does your createSelectField do?
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
15 Dec 2011 6:22 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
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.


Reply With Quote