Results 1 to 2 of 2

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

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    50
    Vote Rating
    0
      0  

    Default 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
    549
    Vote Rating
    54
      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/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •