UI datagrid URL参数变化,重新加载
1、UI datagrid URL参数变化,重新加载
?? ...
???border:false,
???url:'hblims/task/taskAction!getMaterialListByIds.action',
???queryParams:{accType:acctype,materialIds:'${lmsTskAcception.listIds}',inOrOut:'in'},
?? ...
??
???实现:$('#xxx').datagrid("reload",{accType:acctype,materialIds:tempIDString2,inOrOut:'in'});
?
2、
? var materialSelecteds=$('#materialListForChoose').datagrid("getSelections");//已选择
??for(var j=0;j<materialSelecteds.length;j++){
??????? ?//$('#cailiaolist2').datagrid("appendRow",materialSelecteds[j]);//添加到表中
??????? $('#materialListForChoose').datagrid("deleteRow",
??????? $("#materialListForChoose").datagrid('getRowIndex',materialSelecteds[j]));//删除被选择的
??}?