21 Nov 2012 5:23 AM #1
Custom picker field with menu
I'm trying to create my own field type which extends Ext.form.field.Picker.
In the createPicker() method I create a menu that will be used as the picker.
The menu has 2 levels (submenu). I'm having problems with the menu items in the second level - I can't add event handlers on them. No matter what I try the menu always closes when I interact with the submenu, and no events are fired. There are no such problems with the main menu (first level), I guess there is some event that needs to be stopped but I can't seem to find it...
P.S the submenu is a panel component, not a regular menu item - but it doesn't work neither with regular items.
Any ideas what can this be?
Thanks in advance for your help!
23 Nov 2012 7:33 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Can I see what you have tried?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
24 Nov 2012 9:30 PM #3
26 Nov 2012 11:48 PM #4
I ended up using the regular trigger field, which displays the menu on trigger click.
I guess this is a bug...