PDA

View Full Version : Textarea editor in grid 'grow'



ChrisAtBuddi
29 Nov 2019, 4:58 AM
Before upgrading our ExtJS application to 7.0.0, when we had a textarea editor set for inline editing of a Grid row, the editor would 'grow' to show multiple lines. However, after upgrading to 7.0.0, the textarea editor seems to be restricted to the height of the grid row, and therefore appears as a single line (however, multiple lines of text can be added).

I have tried setting 'grow' to true, but with no success. I've add two screenshots showing what I mean.

Does anyone have any suggestions on how to replicate the 6.x functionality in 7.0.0?

Thanks!

dawesi
14 Jan 2020, 5:41 AM
you'd probably have to hack the overflow css on the grid cells as with other versions in the past #sadly

ChrisAtBuddi
14 Jan 2020, 5:46 AM
We didn't have to hack anything in the past, in previous versions of ExtJS, it just worked.

rrandymeyer
21 Jan 2020, 11:59 AM
Hi Chris,

It is working for me in 7.0.0


},{
dataIndex: 'combrules',
text: 'Combination Rule',
flex: 2,
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
metaData.tdAttr = 'data-qtip="' + value + '"';
return value;
},
editor: {
xtype: 'textareafield',
grow: true,
inputAttrTpl: 'autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"'
}

ChrisAtBuddi
21 Jan 2020, 11:22 PM
Thanks for the response. I have very similar code to you, but it still doesn't work. The texarea is multi-line, but it stays within the bounds of the grid row. Not sure what is different with your implementation:




{
text: 'Desc.',
dataIndex: 'description',
flex: 2,
tdCls: 'editable',
renderer: function(value, meta, record) {
meta.tdAttr = 'data-qtip ="Double click to edit the description"';
return value;
},
editor: {
xtype: 'textareafield',
grow: true,
allowBlank: false
}
},