PDA

View Full Version : how to change gridpanel backgroud



luoyu
22 Oct 2010, 1:56 AM
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

gridpanel.getEl().addClass("mycss");,but it can not work.so i try to use
gridpanel.getEl().applyStyles({
'background-color' : '#FFFF00'
});
but it also can not work.How can i do .
Thanks very much.

Condor
22 Oct 2010, 2:40 AM
Yes, it does work, but your css rule that uses mycss is wrong.

Try:

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

luoyu
25 Oct 2010, 5:30 PM
thank you very much.By your suggestion,I resolve my problem.Thank you very much.