我正在制作一个获取游戏匹配结果的表格。问题是当我尝试对匹配结果(子网格)进行排序时,只有 num 和 team 列可以排序,其他列不可排序。我错过了什么吗?请帮忙。
http://darkencraft.woobi.co.kr/DotA2Login/WinTablev2.php
以下是我在排序时遇到问题的子网格:
jQuery("#"+subgrid_table_id).jqGrid({
url:"get_match_detail.php?q=1&match_id="+(jQuery("#match_list").getRowData(row_id))['match'],
datatype: "json",
colNames: ['Num','Team','Name','Steam ID #', 'Hero', 'Hero', 'Image', 'Kills','Deaths','Assists','Creep Kills','Denies','Gold-per-Minute','Experience-per-Minute'],
colModel: [
{name:"num",index:"num",width:30,key:true},
{name:"team",index:"team",width:30},
{name:"name",index:"match_id",width:80},
{name:"steamid",index:"win",width:150,align:"right"},
{name:"hero_en",index:"match_id",width:80},
.....more columns
{name:"epm",index:"match_id",width:80}
],
sortname: 'num',
pager: pager_id,
rowNum:20,
height: '100%',
sortable: true,
loadonce: true,
sortorder: "asc",});