Reputation: 325
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.
Upvotes: 0
Views: 2751
Reputation: 16140
getPlugin
works if you define pluginId
property for plugin, not id
. You can also find your plugin in grid.plugins
array.
Here is fiddle showing getPlugin
in work: http://jsfiddle.net/95a1c92f/2/
Upvotes: 4