PDA

View Full Version : Does the Picker not work yet?



hotdp
11 Feb 2012, 10:35 AM
When running:

var picker = Ext.create('Ext.Picker', { slots: [
{
name : 'limit_speed',
title: 'Speed',
data : [
{text: '50 KB/s', value: 50},
{text: '100 KB/s', value: 100},
{text: '200 KB/s', value: 200},
{text: '300 KB/s', value: 300}
]
}
]
});
picker.show();

From my Action Controller I get this error:

TypeError: 'null' is not an object (evaluating 'this.getElement().getParent().getPageBox')

What is wrong?

bharatn
11 Feb 2012, 11:47 AM
Please attach or private message the project so we can analyze better.
Thanks

hotdp
11 Feb 2012, 11:59 AM
Please attach or private message the project so we can analyze better.
Thanks

Okay, I have send you a PM.

bharatn
13 Feb 2012, 10:56 AM
In this case Picker did not have a parent so was resulting in an error. i have advised the user on the fix.

hotdp
13 Feb 2012, 11:11 AM
I think it is kind of strange? I am building a app that is very similar to CityBar but with a picker. Is this correct behaviour?
In ST1 I never had this problem.