-
19 Sep 2011 4:54 AM #1
Answered: DataGrid and Cell rendering css problem
Answered: DataGrid and Cell rendering css problem
After reading this article, I've managed to change rendering.
I'm calling an internal function:
renderer: this.onRenderCell
And this function is like this:
onRenderCell: function(value, metaData, record, rowIndex,
colIndex, store, view) {
metaData.css = 'ini-cell-pas-traduit';
return '«'+value+'»';
}
If you read carefully I return '«'+value+'»'; so for each value it is transformed to: '«value»'; . This is a proof that on every single line, it works perfectly. So should it be for the css. But the css is applied one time out of two!! This drives me nuts. Any idea where I should take a look?
Capture.jpg
-
Best Answer Posted by olivierpons
For your information, here's the solution (unfortunately, I've got the answer from stackoverflow where people are more... or less... well from here anyway).
Here's the solution: add "!important" keyword:
Hope this helps.Code:b.my-ini-style { background-color : red !important; }
-
19 Sep 2011 10:58 PM #2
For your information, here's the solution (unfortunately, I've got the answer from stackoverflow where people are more... or less... well from here anyway).
Here's the solution: add "!important" keyword:
Hope this helps.Code:b.my-ini-style { background-color : red !important; }


Reply With Quote