PDA

View Full Version : ExtJS 4.2 Grid Cell Editor Focus Issue



MMT
18 Nov 2014, 3:13 AM
Hi,

I am using ExtJS version 4.2.2

Using text area editor in grid with cell editor. By clicking "ADD" button from tool bar it adds row to grid & start editing. Whenever scroll bar appears, text area moves out of cell. without scroll bar it works fine. Is there any possible solution/work around available to handle scroll bar issue.

Please refer fiddle for the same.

dii

slemmon
19 Nov 2014, 3:44 PM
Hi,

Try setting a small delay on the focus handler to account for the scrolling.



//...
focus: function (field) {
field.ownerCt.alignTo(cell, 'tl-tl');
},
delay: 1
//...

MMT
19 Nov 2014, 10:28 PM
Hi slemmon,

Thanks for suggestion,
I have tried by adding delay on focus, it works initially. But if ADD button is clicked multiple times e.g. clicking button continuously, editor is lost from the first column. There is no error on console as well.Please refer below fiddle.

dma

slemmon
20 Nov 2014, 10:54 AM
You might try setting the css on the row instead.

dni