示例:
<div id="datagrid1" class="mini-datagrid" oncellvalidation="onCellValidation">
</div>
function onCellValidation(e)
{
if (e.field == "部门编号")//我要判断的字段
{
if (!e.value && !e.row.外协厂商代号) //判断条件
{
e.isValid = false;
e.errorText = "无外协厂商时,部门不能为空!";
}
}
}