私はあなたが下の意味を理解していない「列名がSIDXている場合は、SORD、フィルターを、jqGrid取得データが壊れています」。それにもかかわらず、必要な場合は、prmNames
とserializeGridData
という2つの方法でjqGridパラメータの名前を変更または削除できます。
prmNamesのデフォルト値のリストを慎重に調べる必要があります。方法でfilters
の名前を変更するには、しかし、あなたが
$.extend(jQuery.jgrid.defaults, {
prmNames: {
id: "_rowid", page: "_page", rows: "_rows",
oper: "_oper", sort: "_sidx", order: "_sord"
}
});
(代わりにsidx
とsord
のsort
とorder
)を使用する必要があり、他のパラメータの名前の名前を変更するには、no可能性はありません。 _filters
へfilters
の名前を変更するには、空のsearchField
の送信を削除するには、searchString
とsearchOper
私はhereを説明するものとほぼ同じ操作を行うことができます。
serializeGridData: function (postData) {
var myPostData = $.extend({}, postData); // make a copy of the input parameter
myPostData._filters = myPostData.filters;
delete myPostData.filters;
delete myPostData.searchField;
delete myPostData.searchString;
delete myPostData.searchOper;
return myPostData;
}
Fiddlerを使用するかFirebugあなたはthe demoのURLで使用されていることを確認することができます以下のパラメータ
_search=true&nd=1313235583212&_rows=10&_page=1&_sidx=invdate&_sord=desc&_filters=...
必要に応じて
ありがとうございます。これは問題を解決します。 – Andrus