-
2 May 2012 12:53 AM #1
Problem with cell editor in custom menu
Problem with cell editor in custom menu
Hi!
I'm having some problems with 4.1.
I have a custom menu contining a grid with cell editor plugin.
When I click on the editor, menu lost focus and is closed...
the result is the editor, alone, on the page....
Please help me...
-
2 May 2012 2:44 PM #2
You will need to provide code to get help. Since this is custom component, it may take some time for someone to have a look at this.
Have you traced through the code with FireBug/Developer Tools to see what is going on in the call stack?
Regards,
Scott.
-
3 May 2012 2:02 AM #3
code
code
Thanks for quick reply, here is my code:
grid:
Menu:Code:[...] { text: "${_('Labels')}", menu: { xtype: 'menu', plain: true, forceLayout: true, width: 255, layout: 'vbox', items: [{ xtype: 'labelmanager' }] } } [...]
LabelTable:Code:Ext.define('LabelManager',{ extend: 'Ext.container.Container', alias: 'widget.labelmanager', initComponent: function(){ this.callParent(); [...] var labelTable = new LabelTable(); this.add(labelTable); });
Code:Ext.define('LabelTable', { extend: 'Ext.grid.Panel', store: new LabelsStore(), plugins: [ Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 1 }) ], columns: [{ width: 130, dataIndex: 'title', editor: { allowBlank: false, xtype: 'textfield' } } });


Reply With Quote