jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Exporting Grid data in a mobile app
Tagged: app, application, export, Exportdata, grid, jqxgrid, mobile, variable
This topic contains 9 replies, has 3 voices, and was last updated by Peter Stoev 11 years, 3 months ago.
-
Author
-
I tried to display data in jqxgrid in a mobile app, and it worked very well. However, when I added an Export button ( based on export data demo), then clicking on the button does nothing, and also, there is no error happening on clicking the button as I have checked in the IDE I am using.
My question: Is export possible for jqxgrid in a mobile app or may be it doesn’t make sense in a mobile environment? ( hybrid app developed using HTML5)
Hello sun21170,
Please make sure your application allows internet access and that your device is connected to the Internet. The export PHP file is hosted on the jQWidgets server and you need to have access to it to successfully export your grid.
To be able to open the exported file, you will need Microsoft Excel or a similar software, such as OpenOffice Calc.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Sunil,
Your video is not visible. Please provide us with a direct link to it.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Sorry, I missed putting the link. Here is the link: http://screencast.com/t/U2RUUkXhPv
Thanks
SunilHi Sunil,
The exportdata method requires internet connection. Please make sure your application has internet access and that nothing prevents it from connecting to the jQWidgets server.
Another possibility is to export the grid to a local variable, which does not require internet connection. The variable, containing the grid’s data, can later be used as you like. Here is how to export the grid to a local variable:
var exportData = $("#jqxgrid").jqxGrid('exportdata', 'csv');
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
My mobile phone was connected to the internet when this happened, but even then nothing happened when I clicked on the Export button.
Is there any documentation you can point me to that will explain how the export of data works?Thanks
SunilHi Sunil,
Please take a look at the exportdata entry in the jqxGrid API Documentation (under Methods).
You may also browse the forum for related topics, such as Grid export to excel and Must use the server side function to export grid?
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Thanks for the links to documentation for exporting data.
After reading it, I think while its possible to get exported data into a variable on a mobile phone, it’s not possible to truly export data to a file as happens on desktop browser.
Could you please confirm this?Thanks
SunilHi Sunil,
Let me put my answer here, too.
The problem is not on our side or the fact that it is a mobile device. The problem is that to Export the Grid’s data, your app will make a connection to our Server, but if there is no Internet Connection or due to some Security policy in your app preventing that, you will never export the Grid’s data. That is why Dimitar suggested you to export the Data to a Variable. So you will then be able to send that data to your own server with granted permissions by your mobile app. Hope this answer helps you!
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.