For the following column, I need to format the selected row. I'm able to change cell data (below), but how can I format the selected grid row? I want to apply strikethrough text.
{
title: "Actions", editable: true, dataIndx: 'Action', width: 140
editor: {
type: 'select',
options: ['', 'Edit Resource', 'Remove Resource'],
init: function (ui) {
ui.$editor.on('change', function () {
rd = ui.rowData
if ($(this).val() == "Remove Resource") {
rd.ResourceName = "(Delete) " + rd.ResourceName
rd.ResourceName.style('color', "red") //this doesn't work, how can I format this row with strikethrough text? If that's not possible, how can I set font color to
red?
}
});
}
},
},