jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Grid Export Server
Tagged: jqwidgets
This topic contains 6 replies, has 4 voices, and was last updated by Peter Stoev 11 years, 10 months ago.
-
AuthorGrid Export Server Posts
-
Hi
I specify in the exportdata method an url for export server, but the method call only jqwidgets.com.
It’s my call:
.jqxGrid(‘exportdata’, ext, widgetTitle,false,null,’/Dashboard/DownloadTable’);
Is there an error?
Thanks
Hi marchip,
You can take a look at the exportdata method and its parameters in the API documentation: jquery-grid-api.htm. I believe, the passed parameters are incorrect. In addition, make sure you have the PHP Server Script required by the export function uploaded to your server.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comI solved the problem.
I’ve update to 2.5.5 version.Thanks
hi,
where can I download the php script
thanks
Hi ryan paul,
The PHP script for the export is provided to customers with Enterprise or Developer license.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comIs the example correct for what is showing as the list of parameters? Is “exportdata” the file name? and “json” the export type? if so it appears they are reversed either in the documentation or the example…
From the API:
The first parameter of the export method determines the export’s type – ‘xls’, ‘xml’, ‘html’, ‘json’, ‘tsv’ or ‘csv’.
The second parameter is the file’s name. If you don’t provide a file name, the Grid will export the data to a local variable.
For example:var data = $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘json’);
The third parameter is optional and determines whether to export the column’s header or not. Acceptable values are – true and false. By default, the exporter exports the columns header.
The fourth parameter is optional and determines the array of rows to be exported. By default all rows are exported. Set null, if you want all rows to be exported.
The fifth parameter is optional and determines whether to export hidden columns. Acceptable values are – true and false. By default, the exporter does not export the hidden columns.
The last parameter is optional and determines the url of the export server. By default, the exporter is hosted on a jQWidgets serverHi,
“exportdata” is the method name. The parameters of the method are after the method’s name. There is an online sample which shows how to use the method and also the documentation describes how to use it, too.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.