jqGrid print/export
I use only js (php backend) to c开发者_如何转开发reate jqGrid. I want to add print/export to excel with js, not to include all the php classes for jqGrid (jqGrid.php) and duplicate code. Is it possible and how?
There are no perfect way to print a jqGrid. Some information which can help you you can find in Print webpages problems :: looking for good tutorial to print web pages (build by Jquery ui, jqgrid , zend).
The best results with exporting the information in Excel you can reach with respect of Open XML SDK 2.0 used on the server (see more links under how to export asp.net MVC detail view data to an excel file? and Strategy in exporting to Excel with formatting from ASP.NET?). I am not sure, that you can do this in your environment.
You can try also to use excelExport
method of jqGrid implemented in grid.import.js.
精彩评论