[CLOSED] Change column background color after render

  1. #1

    [CLOSED] Change column background color after render

    Hi,

    How can I change the background color of a column dynamically after the gridpanel has been rendered without applying a css class.

    I would like to be able to apply the style without using a css. example

    column.metadata.style = "background-color: Aqua !Important;"
    grid.refesh();
    There is no style property, is there a property I can set to do this
    Last edited by Daniil; Sep 14, 2012 at 1:52 PM. Reason: [CLOSED]
  2. #2
    Hi,

    "metadata" is actual within the Column Renderer only.

    So, you should implement this logic within the Renderer.

    Calling the refresh method for the view causes all Renderers to be executed.
    grid.getView().refresh();

Similar Threads

  1. [CLOSED] Change background color of Toolbar
    By trieu.tran in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 06, 2012, 10:56 AM
  2. Replies: 2
    Last Post: Dec 29, 2011, 2:11 AM
  3. Replies: 1
    Last Post: Nov 24, 2011, 6:48 AM
  4. Replies: 12
    Last Post: Jun 17, 2009, 12:07 PM
  5. Change Tab background color or background image
    By georgelanes in forum 1.x Help
    Replies: 0
    Last Post: Nov 06, 2008, 3:55 PM

Posting Permissions