How can I disable specific row of a grid to avoid any interaction of user?
How can I disable specific row of a grid to avoid any interaction of user?
Can you explain a bit more what you need…
what you mean with "interaction"… what interactions will have the other rows
You can configure the buttons using the property "buttons" of CButtonColunm: one of the parameters, visible, is an expression in wich you $data is a variable containing the actual record.
Apologize for the misleading both of you.
I have put below code to achieve my goal:
'rowCssClassExpression'=>'$data->delete_req == 1 ? "gone ". ($row%2 ? "even" : "odd") : ($row%2 ? "even" : "odd")',
But unfortunately though I have set style using CSS file like below, my grid rows won’t strikeout!
.grid-view table.items tr.gone
{
text-decoration: line-through;
}
This should work
.grid-view table.items tr.gone td
{
text-decoration: line-through;
}
Thank you very much for you effort. It worked.