jQWidgets Forums

jQuery UI Widgets Forums Grid Exporting Grid data in a mobile app

This topic contains 9 replies, has 3 voices, and was last updated by  Peter Stoev 11 years, 3 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
  • Exporting Grid data in a mobile app #47358

    sun21170
    Participant

    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)

    Exporting Grid data in a mobile app #47363

    Dimitar
    Participant

    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,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Exporting Grid data in a mobile app #47502

    sun21170
    Participant

    Hello Dimitar,

    I am not talking about the demo site for exporting data. I think you may have misunderstood my question. Please look at this video to see what I meant:

    Thanks
    Sunil

    Exporting Grid data in a mobile app #47503

    Dimitar
    Participant

    Hi Sunil,

    Your video is not visible. Please provide us with a direct link to it.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Exporting Grid data in a mobile app #47506

    sun21170
    Participant

    Hi Dimitar,

    Sorry, I missed putting the link. Here is the link: http://screencast.com/t/U2RUUkXhPv

    Thanks
    Sunil

    Exporting Grid data in a mobile app #47514

    Dimitar
    Participant

    Hi 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,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Exporting Grid data in a mobile app #47594

    sun21170
    Participant

    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
    Sunil

    Exporting Grid data in a mobile app #47595

    Dimitar
    Participant

    Hi 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,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Exporting Grid data in a mobile app #47705

    sun21170
    Participant

    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
    Sunil

    Exporting Grid data in a mobile app #47721

    Peter Stoev
    Keymaster

    Hi 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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.