Results 1 to 1 of 1

Thread: Alternate colors with RowEditor

  1. #1
    Sencha User
    Join Date
    Apr 2011

    Default Alternate colors with RowEditor


    recently I tried to combine alternating row colors in a grid with a row editor and stumbled across a problem. I used
    grid.setStripeRows( true );
    to turn the feature on and with
    .x-grid3-row-alt {
        background-color: #F9F9F9;
    in my css I could set the color. I even used this
    .x-grid3-row-alt.x-grid3-row-selected {
        background-color: #F9F9F9 !important;
    to prevent selected/highlighted rows to surpress the alternate color.

    But when I want to edit a row, there seems to be a wrapper element to wrap all input elements in the edited row. I can adjust the style of the element via
    .x-row-editor-body {
        background-color: {color};
    Setting the background-color to white leads to an overlap of color in each row with an alternate color - which does not look nice.
    Setting the background-color to transparent leads to a "bleed-through" of the underlying input elements - which is even worse. It looks worst when I use checkboxes, which are always not at the same position as the underlying checkbox elements.
    Since the edited row is not attached with the alternate color class (".x-grid3-row-alt") of the corresponding row under it, there is no chance to fix this via CSS.

    Any suggestions to solve this? Thanx in advance.
    Last edited by altmayer; 18 Apr 2011 at 5:47 AM. Reason: not finished

Similar Threads

  1. ListView Alternate row colors
    By ValterBorges in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 26 Aug 2010, 12:40 PM
  2. Lightbox Alternate
    By bluesapphire in forum Community Discussion
    Replies: 1
    Last Post: 16 Aug 2009, 4:29 AM
  3. How to display Alternate rows with different colors in a grid
    By emmadi in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 2 Nov 2008, 7:58 PM
  4. Set alternate row colours
    By valc in forum Ext 1.x: Help & Discussion
    Replies: 16
    Last Post: 5 Jan 2007, 11:29 AM

Posting Permissions

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