简体   繁体   English

JqG​​rid从客户端导出到excel

[英]JqGrid export to excel from client side

I was wondering if there was any in-built export to excel functionality in the JQGrid that would allow me to export the grid data to csv or xls? 我想知道在JQGrid中是否有任何内置导出到excel功能允许我将网格数据导出到csv或xls? To be clearer, I would not want to hit the server at all as the grid is loadOnce:true and would want to do it from the client side. 更清楚的是,我根本不想点击服务器,因为网格是loadOnce:true并且希望从客户端执行此操作。

I am talking about some options in the jqgrid which would help me specify the filename and path as well as the file format 我在谈论jqgrid中的一些选项,它们可以帮助我指定文件名和路径以及文件格式

Sriram 斯利拉姆

I use next steps 我用下一步

1.- I import this script https://gist.githubusercontent.com/xola139/0ee40653d17af327573e/raw/1595e8d74e83caf1ae5a50454188498727715415/ScriptExportExcelTable in your project 1.-我在你的项目中导入这个脚本https://gist.githubusercontent.com/xola139/0ee40653d17af327573e/raw/1595e8d74e83caf1ae5a50454188498727715415/ScriptExportExcelTable

2.-After put a tag where exist jqgrid, something like that 2.-将标签放在jqgrid之后,就像那样

 where 

 nameMyJqgrid= name asig for you jqgrid
 name Ramdom= any name for you tab sheet in excel                           

3.-Finish 3,完成

I hope you will be useful, regards 我希望你会有用,问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM