想要下面的1(错焊)、2(漏焊),默认为选择,怎么做?
代码:
selectorData = <%=failureReasonData%>; $(function() { selectorGrid = $(".selectorgrid").ligerGrid({ checkbox : true, columns : [ { display : "<s:text name='System.FailyreReason.Name' />", name : 'name', width : 200, }, { display : "<s:text name='String.Description' />", name : 'description', width : 200 }], pageSize : 20, where : f_getWhere_selctor(), data: $.extend(true,{},selectorData), sortName : 'id', width : '100%', height: '78%', isChecked: f_isChecked }); f_selectorSearch(); }); function f_isChecked() { return false; };
Json字符串格式:
{"rows":[
{"id":1,"name":"错焊","description":"错焊"},
{"id":2,"name":"漏焊","description":"漏焊"}......