[英]jqgrid excelExport how usage exportOptions?
The documentation says: 该文件说:
jQuery("#grid").jqGrid('excelExport', { url: 'ExportExcel.php' });
Where can I find exportOptions
describe and usage like 在哪里可以找到exportOptions
描述和用法,例如
jQuery("#grid").jqGrid('excelExport', { url: 'ExportExcel.php' ;
exportOptions: { array...} });
or view sample of the usage of this exportOptions
? 或查看此exportOptions
用法的exportOptions
?
in source jqgrid: 在源jqgrid中:
excelExport : function(o) {
o = $.extend({
exptype : "remote",
url : null,
oper: "oper",
tag: "excel",
exportOptions : {}
}, o || {});
return this.each(function(){
if(!this.grid) { return;}
var url;
if(o.exptype == "remote") {
var pdata = $.extend({},this.p.postData);
pdata[o.oper] = o.tag;
var params = jQuery.param(pdata);
if(o.url.indexOf("?") != -1) { url = o.url+"&"+params; }
else { url = o.url+"?"+params; }
window.location = url;
}
});
but not apply "exportOptions" in result url. 但不在结果网址中应用“ exportOptions”。 imho must been : 恕我直言一定是:
excelExport : function(o) {
o = $.extend({
exptype : "remote",
url : null,
oper: "oper",
tag: "excel",
exportOptions : {}
}, o || {});
return this.each(function(){
if(!this.grid) { return;}
var url;
if(o.exptype == "remote") {
var pdata = $.extend({},this.p.postData);
pdata[o.oper] = o.tag;
pdata['exportOptions'] = o.exportOptions;
var params = jQuery.param(pdata);
if(o.url.indexOf("?") != -1) { url = o.url+"&"+params; }
else { url = o.url+"?"+params; }
window.location = url;
}
});
or another usage of "exportOption" ? 还是“ exportOption”的另一种用法?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.