PDA

View Full Version : how to set the fontstyle of a gridrow that is being edited



marc123
27 Nov 2012, 7:21 AM
Hello,

I use Ext 3.4 and have a gridpanel. It uses the RowSelectionModel. So when I doubleclick a row, the data cells are being transformed into textfields. The text in the editable cells changes font size. I would like to be able to specify the font family and -size being used of text in cells rtat are being edited.
I can't find a relevant config option for gridpanel or style I can override in my css.

Is this possible and if yes, how?

Thanks,

Marc

willigogs
27 Nov 2012, 7:48 AM
You should be able to change the display of the textfield with the following CSS:

.x-grid-editor .x-form-text.x-form-field {font: whatever_you_want_here;}

e.g:
http://jsfiddle.net/Whinters/XPxWH/