View Full Version : How to ensure componentLayoutCounter correctly set ?

13 Nov 2014, 5:53 AM
I am adding multiple grid(cellplugin in each grid) in tab panel and displaying it. however when I click on cell for editing it doesn't display text area.

I have configured editor as text area also.
I tried to debug plugin and found issue(Editing.js) in below code -

startEdit: function(record, columnHeader) {
var me = this,
layoutView = me.grid.lockable ? me.grid : me.view;
// The view must have had a layout to show the editor correctly,
// defer until that time.
// In case a grid's startup code invokes editing immediately.
if (!layoutView.componentLayoutCounter) {
boxready: Ext.Function.bind(me.startEdit, me, [record, columnHeader]),
single: true
return false;


Issue is componentLayoutCounter have value is 0 because of that if block gets executed and false is returned which stops editing.

My query is how we can ensure that componentLayoutCounter value always set correctly ?

13 Nov 2014, 10:06 PM
I'm not sure I follow just yet. Can you post a simple test case at https://fiddle.sencha.com demonstrating the issue you're seeing?

Also, what version of ExtJS are you working with?
And what OS / browser version?

20 Nov 2014, 2:54 AM
Hi slemmon

Sorry for delay in reply. I am not facing this issue now.
I believe it could be due to not handling dynamic tab addition logic carefully. Since I corrected it now.
I can edit the cell also.