1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    50
    Vote Rating
    0
    marc123 is on a distinguished road

      0  

    Default how to set the fontstyle of a gridrow that is being edited

    how to set the fontstyle of a gridrow that is being edited


    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

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    546
    Vote Rating
    53
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    You should be able to change the display of the textfield with the following CSS:
    Code:
    .x-grid-editor .x-form-text.x-form-field {font: whatever_you_want_here;}
    e.g:
    http://jsfiddle.net/Whinters/XPxWH/

Thread Participants: 1