PDA

View Full Version : Remove a css class with the renderer



same66
27 Dec 2010, 7:25 AM
Hi,

I'm creating a grid and I want to remove a css class in my renderer.

I want remove a specific property ( padding: 3px 3px 3px 5px; ) in this class => .x-grid3-cell-inner, .x-grid3-hd-inner

It's possible ? Because I want remove this class only in ONE cell when my renderer is call.

Thanks ! :)

Condor
27 Dec 2010, 10:05 AM
renderer: function(v, meta) {
meta.css = 'my-cls';
return v;
}
with

.my-cls {padding: 0;}

same66
28 Dec 2010, 12:46 AM
Perfect, thanks :)