PDA

View Full Version : multiline display in textarea from editorgridpanel



rob_kromwijk
7 Jun 2010, 11:22 PM
Hi,

I have an editorgridpanel including textarea-fields. If I select the textarea in order to edit ("editmode"), content that contain carriage returns or content that is longer than the length of the textarea, is displayed nicely underneath each other (multiple lines).

However, if the textarea is not in editmode, the content is displayed as one long sentence. This is undesired, since only a small portion of the content can be read. How can I spread content in a textarea in multiple lines if the textarea isn't in editmode.

thnx



verblijfsobjectPersonenColModel = new Ext.grid.ColumnModel({
defaults: {
sortable: true
},
columns: [{
header: 'Namen en BSN-nummer',
dataIndex: 'bsn',
editable: false,
renderer: personenIdentificatieRenderer,
width: 200
},{
header: 'Details',
dataIndex: 'geslacht',
editable: false,
renderer: personenDetailsRenderer,
width: 200
},{
header: 'Toelichting',
dataIndex: 'toelichting',
editable: false,
width: 200
},{
header: 'Notitie',
dataIndex: 'notitie',
editor: {xtype: 'textarea',
autoSizeColumns: true},
width: 200
},
chkInschrijvingCorrectCol,
chkInOnderzoekCol,
chkTelefonischContactCol,
chkMeldingINCol
]
});