我使用带有一些编辑规则的内联编辑模式(例如,editrules:{number:true})。
当我保存时,如果验证失败,错误消息框会正确显示,但错误字段未以红色突出显示(类 ui-state-error)。
默认情况下,jqgrid 不应该添加类“ui-state-error”吗?
grid.jqGrid({
datatype: 'local',
data: colD.rootVar,
gridview: true,
colModel : [
{name: "Team", label:"team", index:"team", width:"150", align:"center", sortable:false},
{name:"Employee", index:"employee", width:"150", align:"center", sortable:false},
{name:"col_01", index:"1", width:"50", align:"center", sortable:false, editable:true, editrules:{required: true, number:true} },
{name:"col_02", index:"2", width:"50", align:"center", sortable:false, editable:true } ],
pager: jQuery('#pager'),
rowNum: 20,
rowList: [5, 10, 20, 50],
height: "auto",
viewrecords: true,
caption: "Planning Management ITEC-PRD"
});
grid.jqGrid('navGrid',"#pager",{edit:false, add:false, del:false});
grid.jqGrid('inlineNav',"#pager",{edit:true, add:false, del:false});
}
谢谢你的帮助