Results 1 to 3 of 3

Thread: how to change gridpanel backgroud

  1. #1
    Sencha User
    Join Date
    Mar 2010
    Posts
    30

    Default how to change gridpanel backgroud

    I have a problem with the gridpanel.I want to change the gridpanel the backgrond when i drag the data in the gridpanel.so i use
    Code:
    gridpanel.getEl().addClass("mycss");
    ,but it can not work.so i try to use
    Code:
    gridpanel.getEl().applyStyles({
     'background-color' : '#FFFF00'
    });
    but it also can not work.How can i do .
    Thanks very much.

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246

    Default

    Yes, it does work, but your css rule that uses mycss is wrong.

    Try:
    Code:
    .mycss .x-grid3-row {background-color: #ff0;}

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Posts
    30

    Default

    thank you very much.By your suggestion,I resolve my problem.Thank you very much.

Similar Threads

  1. Changing Grid Backgroud Color
    By akihirokun in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 23 Jun 2010, 4:54 AM
  2. Radio group backgroud color
    By jharkar in forum Ext 1.x: Help & Discussion
    Replies: 5
    Last Post: 17 Nov 2009, 1:10 PM
  3. How to set the backgroud color of ViewPort to white
    By afei in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 21 Jul 2008, 12:29 AM
  4. about panel backgroud
    By liuqiyu in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 4 Feb 2008, 3:16 AM
  5. Change grid on gridpanel
    By mschering in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 21 May 2007, 11:15 PM

Tags for this Thread

Posting Permissions

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