1 waf("分录id").wafGrid("setCellEditorAllConfig", "字段名", "filteritem", "过滤条件", 2 "wafPromptStandard", null); 3 或 4 waf("分录id").wafGrid("getColumnConfig", "city").editoptions.subTagJson.filteritem = "过滤条件" ; 5 或 6 waf("分录id").wafGrid("getColumnConfig", "字段名").editoptions.subTagJson.filteritem = "过滤条件" ; 7 8 9 //添加一行加数据 10 var datarow = {id:123,number:123,F7name:{id:data['room.id'],属性:值....}; 11 $("#editGrid").wafGrid('addRow',{data:datarow}); 12 13 //添加多行数据 14 var array = new Array(); 15 array.push(datarow); 16 ...... 17 waf("#editGrid").wafGrid("setGridData",array,true); 18 19 //设置分录表格排序的属性 20 waf("#list2").wafGrid("setColumnProp","amount","sortable",false); 21 22 //隐藏一列 23 waf("#editGrid").wafGrid("hideColumn","列的绑定属性名",true); 24 //显示一列 25 waf("#editGrid").wafGrid("showColumn","绑定的属性",true); 26 //锁定 27 waf("#editGrid").wafGrid("lockColumn","绑定的属性",true); 28 //解锁 29 waf("#editGrid").wafGrid("unLockColumn","绑定的属性",true); 30