How to get access to grid cellediting plugins to call startEditbyPosition to put a particular cell in editing mode. I am using Extjs 5
I have tried below code but getPlugin doesn't work as mentioned in docs for grid. http://docs.sencha.com/extjs/5.0.1/#...Ext.grid.Panel
var field = button;
debugger;
var gridpanelbidding = Ext.ComponentQuery.query('biddinggridpanel1')[0];
console.log(this);
var plugin = gridpanelbidding.getPlugin('biddingcelledit'); //this returns null
plugin.startEditByPosition({ row: 0, column: 3 });
if (field.getWidgetRecord) {
var rec = field.getWidgetRecord();
if (rec) {
console.log(rec);
//rec.set('descriptio', field.getValue());
}
}
Any kind of help is appreciated. Thanks in advance.
getPlugin
works if you definepluginId
property for plugin, notid
. You can also find your plugin ingrid.plugins
array.Here is fiddle showing
getPlugin
in work: http://jsfiddle.net/95a1c92f/2/