2、puteasyui-validatebox"style="width:188px;"/>1-1:combogrid(添加)$("#org").combogrid({onLoadError:showError,panelWidth:450,idField:'so_id',textField:'so_name',pagination:true,rownumbers:true,
3、mode:'remote',url:'${path}/sys/sys_orgPage.do',columns:[[{field:'so_name',title:'机构名称',width:100},{field:'so_type',title:'机构类型',width:120}]],onBeforeLoad:function(param){param.refresh="1";},onSelect:function(index,
4、data){}}).combogrid("panel").css("overflow","hidden");注意:在表单保存时还需做如下操作://单独添加时if($('#org').combogrid("getValue")==$('#org'').combogrid("getText")){$('#org'').combogrid("clear");$("#org'").combogrid("grid").datagrid("load",{"refresh":"1"});}/
5、/批量添加时varcombonames=$("#input[comboname=org]");$.each(combonames,function(i,j){if($(j).combogrid("getValue")==$(j).combogrid("getText")){$(j).combogrid("clear");$(j).combogrid("grid").datagrid("load",{"refresh":"1"});}});主要是为了防止用户恶意输入列表中不存在的数据,以及清空不存在的数据后重新加载翻页列表1-2:combogrid(修改)
6、varinit=false;varsel=false;$("#org").combogrid({onLoadError:showError,panelWidth:450,idField:'so_id',textField:'so_name',pagination:true,rownumbers:true,mode:'remote',url:'${path}/sys/sys_
7、orgPage.do',columns:[[{field:'so_name',title:'机构名称',width:100},{field:'so_type',title:'机构类型',width:120}]],onBeforeLoad:function(param){param.refresh="1";},onLoadSuccess:function(data){if(!init){sel=fal
8、se;init=true;$(thi