conditional context menu

How to display context menu for particular row based on some condition (e.g. cell atribute), but no menu for all other rows?

In grid you can attach context menu for whole grid and use onBeforeContextMenu event to allow|deny menu showing

mygrid.attachEvent(“onBeforeContextMenu”,function(id,ind){
if (some_check(id,ind) return true;//allow
return false;
});