PDA

View Full Version : How activate the grid default editor (ExtJS 4.1.1)



jaisolbar
24 Jul 2013, 6:45 AM
Hi,

I want to enable and use the default editor (no plugins such as RowEditor.js (http://www.extjs.com/deploy/dev/examples/ux/RowEditor.js)) on a grid.
I haven't figured it out yet.

I looked at both grid examples cell-editing and row-editing but those are using plugins.

I tried with editor but it is not working:


editor: {
// defaults to textfield if no xtype is supplied
allowBlank: false
}


Any sugestion? Thanks!

slemmon
25 Jul 2013, 9:44 PM
A column's editor will be used by one of the editor plugins (cell or row).



An optional xtype or config object for a Field (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Field) to use for editing. Only applicable if the grid is using an Editing (http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.plugin.Editing) plugin.


http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.column.Column-cfg-editor