//得到显示到界面的id集合
var mya = $("#" + gridName).getDataIDs();
//从上到下获取一条信息
var before = $("#" + gridName).jqGrid('getRowData', mya[i]);
设值再取值
var mydata = [
{helpId:"1",helpCatId:"1",helpCatName:"招募管理",module:"招募需求登记",fun:"发布招募需求",roles:"项目管理层,招募管理层",menuPath:"招募管理->招募需求登记"},
{helpId:"2",helpCatId:"1",helpCatName:"",module:"招募过程管理",fun:"根据招募需求进行招募工作",roles:"项目管理层,招募管理层,采集员",menuPath:"招募管理->招募过程管理"},
{helpId:"3",helpCatId:"1",helpCatName:"",module:"候选人登记",fun:"候选人登记,推荐采用导入方式",roles:"项目管理层,招募管理层,采集员",menuPath:"招募管理->候选人登记"},
{helpId:"4",helpCatId:"1",helpCatName:"",module:"候选人管理",fun:"维护候选人信息",roles:"项目管理层,招募管理层",menuPath:"招募管理->候选人管理"},
{helpId:"5",helpCatId:"1",helpCatName:"",module:"招募结果统计",fun:"招募统计分析报表",roles:"项目管理层,招募管理层",menuPath:"招募管理->招募结果统计"},
{helpId:"6",helpCatId:"2",helpCatName:"执行人管理",module:"执行人管理",fun:"维护执行人信息",roles:"项目管理层,招募管理层",menuPath:"执行人管理->执行人管理"},
{helpId:"7",helpCatId:"2",helpCatName:"",module:"执行人登记",fun:"登记执行人",roles:"项目管理层,招募管理层",menuPath:"执行人管理->执行人登记"},
{helpId:"8",helpCatId:"2",helpCatName:"",module:"执行人统计",fun:"执行人统计分析报表",roles:"项目管理层,招募管理层",menuPath:"执行人管理->执行人统计"}
];
for(var i=0;i<=mydata.length;i++)
jQuery("#tab2_list").jqGrid('addRowData',i+1,mydata[i]);
标识值的设定
"id='helpCatName" + rowId + "'";
//td中设值
<td id="tdPaymentWay">
</td>
$("#tdPaymentWay").html(paymentWay);
function gridReload1(){
jQuery("#area_list").jqGrid('setGridParam',{url:"${base}/recruitmanager/recruitDemandNew\!areaQuery.htm?demandId="+$('#demandId').val()}).trigger("reloadGrid");
}
<c:forEach items="${recruitDemandVendors}" var="item" varStatus="status">
<tr>
<td width="50" nowrap="nowrap">
<c:if test="${item.vendorRequirementType==1}">
其他:
</c:if>
<c:if test="${item.vendorRequirementType==2}">
年龄:
</c:if>
<c:if test="${item.vendorRequirementType==3}">
时间:
</c:if>
<c:if test="${item.vendorRequirementType==4}">
语言:
</c:if>
<c:if test="${item.vendorRequirementType==5}">
学历:
</c:if>
<c:if test="${item.vendorRequirementType==6}">
设备:
</c:if>
<c:if test="${item.vendorRequirementType==7}">
经验:
</c:if>
<c:if test="${item.vendorRequirementType==8}">
能力:
</c:if>
<c:if test="${item.vendorRequirementType==9}">
上网条件:
</c:if>
</td>
<td width="*%">
${item.vendorRequirementDetail}
</td>
</tr>
</c:forEach>
<td width="60%" valign="top" >
<div style="height:400px;overflow:auto">
div 在滚动条
/**隐藏主菜单区*/
function hide_menu()
{$(".main_menu > div").css('visibility','hidden')
}
jqgrid 单击展现详细信息
treeGrid: true,
treeGridModel : 'adjacency',
ExpandColumn : 'moduleName',
ExpandColClick: true,
{name:'menuUrl', index:'menuUrl', width: 80, align:'center', formatter:'checkbox', editoptions:{value:'1:0'}, formatoptions:{disabled:false}}
jqgrid显示单选框
multiselect: true, jqgrid 多选框
var mya = $("#" + gridName).getDataIDs();
//从上到下获取一条信息
var before = $("#" + gridName).jqGrid('getRowData', mya[i]);
设值再取值
var mydata = [
{helpId:"1",helpCatId:"1",helpCatName:"招募管理",module:"招募需求登记",fun:"发布招募需求",roles:"项目管理层,招募管理层",menuPath:"招募管理->招募需求登记"},
{helpId:"2",helpCatId:"1",helpCatName:"",module:"招募过程管理",fun:"根据招募需求进行招募工作",roles:"项目管理层,招募管理层,采集员",menuPath:"招募管理->招募过程管理"},
{helpId:"3",helpCatId:"1",helpCatName:"",module:"候选人登记",fun:"候选人登记,推荐采用导入方式",roles:"项目管理层,招募管理层,采集员",menuPath:"招募管理->候选人登记"},
{helpId:"4",helpCatId:"1",helpCatName:"",module:"候选人管理",fun:"维护候选人信息",roles:"项目管理层,招募管理层",menuPath:"招募管理->候选人管理"},
{helpId:"5",helpCatId:"1",helpCatName:"",module:"招募结果统计",fun:"招募统计分析报表",roles:"项目管理层,招募管理层",menuPath:"招募管理->招募结果统计"},
{helpId:"6",helpCatId:"2",helpCatName:"执行人管理",module:"执行人管理",fun:"维护执行人信息",roles:"项目管理层,招募管理层",menuPath:"执行人管理->执行人管理"},
{helpId:"7",helpCatId:"2",helpCatName:"",module:"执行人登记",fun:"登记执行人",roles:"项目管理层,招募管理层",menuPath:"执行人管理->执行人登记"},
{helpId:"8",helpCatId:"2",helpCatName:"",module:"执行人统计",fun:"执行人统计分析报表",roles:"项目管理层,招募管理层",menuPath:"执行人管理->执行人统计"}
];
for(var i=0;i<=mydata.length;i++)
jQuery("#tab2_list").jqGrid('addRowData',i+1,mydata[i]);
标识值的设定
"id='helpCatName" + rowId + "'";
//td中设值
<td id="tdPaymentWay">
</td>
$("#tdPaymentWay").html(paymentWay);
function gridReload1(){
jQuery("#area_list").jqGrid('setGridParam',{url:"${base}/recruitmanager/recruitDemandNew\!areaQuery.htm?demandId="+$('#demandId').val()}).trigger("reloadGrid");
}
<c:forEach items="${recruitDemandVendors}" var="item" varStatus="status">
<tr>
<td width="50" nowrap="nowrap">
<c:if test="${item.vendorRequirementType==1}">
其他:
</c:if>
<c:if test="${item.vendorRequirementType==2}">
年龄:
</c:if>
<c:if test="${item.vendorRequirementType==3}">
时间:
</c:if>
<c:if test="${item.vendorRequirementType==4}">
语言:
</c:if>
<c:if test="${item.vendorRequirementType==5}">
学历:
</c:if>
<c:if test="${item.vendorRequirementType==6}">
设备:
</c:if>
<c:if test="${item.vendorRequirementType==7}">
经验:
</c:if>
<c:if test="${item.vendorRequirementType==8}">
能力:
</c:if>
<c:if test="${item.vendorRequirementType==9}">
上网条件:
</c:if>
</td>
<td width="*%">
${item.vendorRequirementDetail}
</td>
</tr>
</c:forEach>
<td width="60%" valign="top" >
<div style="height:400px;overflow:auto">
div 在滚动条
/**隐藏主菜单区*/
function hide_menu()
{$(".main_menu > div").css('visibility','hidden')
}
jqgrid 单击展现详细信息
treeGrid: true,
treeGridModel : 'adjacency',
ExpandColumn : 'moduleName',
ExpandColClick: true,
{name:'menuUrl', index:'menuUrl', width: 80, align:'center', formatter:'checkbox', editoptions:{value:'1:0'}, formatoptions:{disabled:false}}
jqgrid显示单选框
multiselect: true, jqgrid 多选框