jqgrid 一些方法的应用

//得到显示到界面的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 多选框
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值