PDA

View Full Version : CellEditing plugin is not working for TriggerEvent



kausikan
7 Apr 2017, 4:05 AM
Hi,
I am trying to Mimic Excel here , I have used CellEditing plugin and trying to change the cell to editable mode on focus.
Below is my code .I am using Extjs 4.2.0.

Ext.create('Ext.grid.Panel', {
title: 'Simpsons',
store: Ext.data.StoreManager.lookup('simpsonsStore'),
columns: [
{header: 'Name', dataIndex: 'name', editor: 'textfield'},
{header: 'Email', dataIndex: 'email', flex:1,
editor: {
xtype: 'textfield',
allowBlank: false
}
},
{header: 'Phone', dataIndex: 'phone'}
],
selType: 'cellmodel',
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', {
triggerEvent: 'cellfocus'
})
],
height: 200,
width: 400,
renderTo: Ext.getBody()
});


Refered the below link.
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.grid.plugin.CellEditing

Thanks & Regards,
Kausikan P

petr.vecera
7 Apr 2017, 5:08 AM
And what is wrong or where is the problem?

kausikan
9 Apr 2017, 7:32 PM
The cell is not changed to editable mode when it has the focus event.