PDA

View Full Version : line-through on row?



hohlraum
11 Aug 2007, 2:32 PM
I was trying to do something like the following:


grid.getView().getRowClass = function(record, index) {
switch (record.data.action) {
case "delete": return "deletedrow";
case "add": return "addedrow";
case "edit": return "editedrow";
}
}


where the style was:



<style type="text/css">
.deletedrow { text-decoration:line-through !important;}
.addedrow { background-color:#D5FFD6 !important;}
.editedrow { background-color:#FFFEC4 !important;}
</style>


The background-color changes work obviously but the line-through on the deletes are not. Any one have any ideas how I can achieve a line through on the text in each cell? Thanks guys/gals.

brian.moeskau
12 Aug 2007, 8:56 PM
You have to apply the style rule to the TD (or any class inside the TD that wraps the text), not the TR itself:


.deletedrow TD { text-decoration:line-through !important;}

cocorossello
7 Nov 2007, 1:03 PM
Thanks, i had the same issue.
Without td works in firefox and not in explorer...