蔭使用列選擇隱藏列,但是當IAM clikcking隱藏所有列的行數都是顯示瞭如何隱藏行號還請人幫我在此感謝隱藏行號通過使用列選擇
這是我的代碼:
$("#list1").jqGrid({
url:"./controllers/apGetTestData.php?testanzres=1&testsuite="+testsuite+"&testcase="+testcase+"&ch="+ch+,
datatype: 'xml',
mtype: 'GET',
height: 'auto',
colNames:[ 'RRID', 'Release Tag','Completed Date'],
colModel:[
{name:'idreleaseRequest', index:'idreleaseRequest', width:24},
{name:'releaseRequestTag', index:'releaseRequestTag'},
{name:'timeStamp', index:'timeStamp'},
{name:'DateInfo', index:'Date Info', sortable:false,align:'center'}
],
pager: $('#pager1'),
rowNum:6,
rowList:[6,12,18,24],
sortname: 'timeStamp',
sortorder: "ASC",
caption:"Test Results",
shrinkToFit:true,
autowidth: true,
viewrecords: true,
rownumbers:true,
cloneToTop:true,
toppager:true
}).trigger("reloadGrid");
$("#list1").jqGrid('navGrid', '#pager1',{add: false, edit: false, del: false, search: false,
cloneToTop:true,refresh: false});
$.extend(true, $.ui.multiselect, {
locale: {
addAll: 'Make all visible',
removeAll: 'Hide All',
itemsCount: 'Avlialble Columns'
}
});
$.extend(true, $.jgrid.col, {
width: 450,
modal: true,
msel_opts: {dividerLocation: 0.5},
dialog_opts: {
minWidth: 470,
show: 'blind',
hide: 'explode'
}
});
$("#list1").jqGrid('navButtonAdd',$('#list1')[0].id + '_toppager_left', {
caption: "Customize Columns",
buttonicon: "ui-icon-calculator",
title: "Customize Columns",
onClickButton: function() {
}
});
var topPagerDiv = $(('#list1')[0] .id+ '_toppager')[0];
$(('#list1') + "_toppager_center", topPagerDiv).remove();
$(('#list1') + "_toppager_right", topPagerDiv).remove();
$("table.ui-jqgrid-htable thead").appendTo("table#list1");
$("table#list1 thead tr").addClass('floatingHeaderRow');
$("div.ui-jqgrid-bdiv").width($(window).width()+30);
我使用行號真正的選擇,但我想隱藏的行數時,IAM單擊列選擇隱藏所有
請分享你到目前爲止已經試過 – 2014-09-10 08:48:30
喜普山Kawadkar相關的代碼,我加入了相關的代碼,請提示我,我不是這個請你提供我很清楚這個 – Sravya 2014-09-10 08:55:18