I have added a check box column to the grid and created a button that can delete all selected values. However in my action col i have made it possible that the delete icon only shows dependant as follows.
‘delete’ => function ($model, $key, $index) {
[color=#808080][i]/* add public function in model i,e GetstopDelete*/
[/i][/color][color=#808080][i]
[/i][/color][color=#808080] [/color][color=#000080]if/color
[color=#000080][b]return true[/b][/color];
[color=#000080][b]else
[/b][/color][color=#000080] return [/color][color=#660000]$model[/color]->[color=#660e7a]stopDelete [/color]== [color=#0000ff]1 [/color]? [color=#000080]false [/color]: [color=#000080]true[/color];
}
},
[font="arial, verdana, tahoma, sans-serif"]BUT, how to i hide the check box based on same parameters as I do not want the check box available if you cannot delete the row?[/font]