PDA

View Full Version : grid column wrap normal but edit weird



huhulucy90
1 Oct 2009, 11:08 PM
hi, I put this in my css file so grid column long text can wrap:



.x-grid3-cell-inner,.x-grid3-hd-inner

{


white-space: normal !important;


}



and assign column the editor as below:




{


width : 240,

dataIndex : 'comment',



editor : new Ext.form.TextField()
}



the text wraps fine, but when I click on the cell to edit, the text field looks weird with the whole long text showing on one line and the other redundant text is still wrapping, has anyone seen things like this before? need your advice, thanks.
http://www.admitorder.com/wrapEditProblem.JPG

huhulucy90
1 Oct 2009, 11:11 PM
I just realize I should use TextArea as Editor right after I posted the question, never mind.