jquery easyui datagrid 如何第一次点击列标题时是降序排列?
千叶玫瑰 2013-07-19 08:16:12 <th data-options="field:'jdje',width:95,align:'right', sortable:true,sortOrder:'desc',formatter:formatMoney">季度计划(万)</th>
这是其中某个列的设置,无论sortorder设为“asc”还是“desc”,第一次点击时都是升序排列。如何第一次点击列标题时是降序排列?谢谢 谢谢
下边是我的datagrid的定义:
<div style="margin:-18px 0;"></div>
<table class="easyui-datagrid" id="dg" title="部门季度进度查询" style="width:1232px;height:500px"
data-options="rownumbers:false,pagination:true,striped:true,singleSelect:true,rowStyler:colorHj,url:'/cxdd/bmjhjdcx_easyui.do',onLoadSuccess: onLoadSuccess,toolbar:'#tb'">
<thead>
<tr>
<th data-options="field:'rownum',width:40,hidden:false">排序分组序号ID</th>
<th data-options="field:'sdid',width:40,hidden:true,formatter:colorHj">室队ID</th>
<th data-options="field:'sdmc',width:100">室队</th>
<th data-options="field:'jhje',width:100,align:'right', sortable:true,sortOrder:'asc',formatter:formatMoney">全年计划(万)</th>
<th data-options="field:'jdje',width:95,align:'right', sortable:true,sortOrder:'desc',formatter:formatMoney">季度计划(万)</th>
<th data-options="field:'ojj',width:95,align:'right',sortable:true, sortOrder:'desc',formatter:formatMoney">一季度(万)</th>
<th data-options="field:'ojjwc',width:80,align:'left',sortable:true,sortOrder:'desc', formatter:formatProgress">一季度完成</th>
<th data-options="field:'tjj',width:95,align:'right',sortable:true, sortOrder:'desc',formatter:formatMoney">二季度(万)</th>
<th data-options="field:'tjjwc',width:80,align:'left',sortable:true,sortOrder:'desc', formatter:formatProgress">二季度完成</th>
<th data-options="field:'threejj',width:95,align:'right',sortable:true,sortOrder:'desc', formatter:formatMoney">三季度(万)</th>
<th data-options="field:'threejjwc',width:80,align:'left',sortable:true,sortOrder:'desc', formatter:formatProgress">三季度完成</th>
<th data-options="field:'fjj',width:95,align:'right',sortable:true, sortOrder:'desc',formatter:formatMoney">四季度(万)</th>
<th data-options="field:'fjjwc',width:80,align:'left',sortable:true, sortOrder:'desc',formatter:formatProgress">四季度完成</th>
<th data-options="field:'qnlj',width:100,align:'right',sortable:true,sortOrder:'desc', formatter:formatMoney">全年</th>
<th data-options="field:'qnwc',width:80,align:'left',sortable:true,sortOrder:'desc', formatter:formatProgress">全年完成</th>
</tr>
</thead>
</table>
<div id="tb" style="padding:5px;height:auto">