-
29 Nov 2012 8:20 AM #1
Picker items not showing in 2.1.0
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.
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.PHP Code:var picker = Ext.Viewport.add(
{
xtype: 'picker',
height : 500,
doneButton: 'Choose',
cancelButton: true,
toolbar: {
ui: 'light',
title: 'Choose a Customer'
},
slots: [
{
name : 'customer',
title: 'Customer',
data : [
{text: 'Test1', value: 50},
{text: 'Test2', value: 100},
{text: 'Test3', value: 200},
{text: 'Test4', value: 300},
{text: 'Test5', value: 300},
{text: 'Test6', value: 300}
]
}
]
});
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??
-
29 Nov 2012 10:32 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Using your code with 2.1.0 (no custom CSS) it works for me:
Screen Shot 2012-11-29 at 12.31.44 PM.jpgMitchell 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.
-
29 Nov 2012 12:37 PM #3
what is ur st version
what is ur st version
Is it ST2 .1.0 beta3?
-
29 Nov 2012 12:42 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
no, 2.1.0
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.
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote