If column names are sidx,sord,filters , jqGrid getting data is broken. I tried to add underscores to them using code below but those parameters are still passed without underscores. Other parameters like _rowid, _page etc. are passed properly with underscores.
How to use sidx,sord,filters as column names in jqgrid ?
jQuery.extend(jQuery.jgrid.defaults, {
prmNames: { id: "_rowid", oper: "_oper", page: "_page",
sidx: "_sidx", sord: "_sord", page: "_page", rows: "_rows", filters: "_filters"
}
});
I don't understand what you mean under "If column names are sidx,sord,filters , jqGrid getting data is broken". Nevertheless if you need you can rename or remove the jqGrid parameters with two ways:
prmNames
andserializeGridData
.You should carefully examine the list of default values of the prmNames. There are no possibility to rename
filters
in the way, but to rename the name of other parameters you should use(
sort
andorder
instead ofsidx
andsord
). To renamefilters
to_filters
and to remove sending of emptysearchField
,searchString
andsearchOper
you can do almost the same what I described here:Using Fiddler or Firebug you can verify that in the URL of the demo are used the following parameters
like you as need.