1
ParamQuery Pro Evaluation Support / selected row Formatting
« Last post by mikep on July 26, 2024, 09:20:09 pm »Hello, can you suggest how to apply a "strikethrough" formatting to the selected row? If not possible, I'd like to apply a style for the row
{
title: "Action", editable: true, width: 140,
editor: {
type: 'select',
options: ['', 'Edit Resource', 'Remove Resource'],
init: function (ui) {
ui.$editor.on('change', function () {
if ($(this).val() == "Remove Resource") {
var rd = ui.rowData
rd.ResourceName = "Resource will be Deleted"
rd.ResourceName.style('color', "grey") //this line doesn't work, but I want to format the row with "strikethrough" format to indicate it's going to be deleted
}
});
}
},
},
{
title: "Action", editable: true, width: 140,
editor: {
type: 'select',
options: ['', 'Edit Resource', 'Remove Resource'],
init: function (ui) {
ui.$editor.on('change', function () {
if ($(this).val() == "Remove Resource") {
var rd = ui.rowData
rd.ResourceName = "Resource will be Deleted"
rd.ResourceName.style('color', "grey") //this line doesn't work, but I want to format the row with "strikethrough" format to indicate it's going to be deleted
}
});
}
},
},