jQWidgets Forums

jQuery UI Widgets Forums DataTable Printing Order

This topic contains 17 replies, has 2 voices, and was last updated by  Hristo 7 years, 7 months ago.

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
  • Printing Order #94530

    defyent
    Participant

    I’m using the example on the site to create printable datatables, however the row order changes when the data is exported, and there does not seem to be any way to sort the rows when exporting the data, which pretty much makes exporting useless, can you shed some light? Cheers

    Printing Order #94536

    Hristo
    Participant

    Hello defyent,

    I tested this example and it seems to work fine.
    Could you clarify it?

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Printing Order #94577

    defyent
    Participant

    Thanks for the reply, yes I see that does work, the only difference between my example and this one is that my source is json. It seems to be using the order that the server provides the data in, not the order that the table has been sorted in.

    Printing Order #94586

    Hristo
    Participant

    Hello defyent,

    The table has been exported in the way like it looks (filtered and/or sorted).
    Please, take a look at this example:
    http://jsfiddle.net/txhi/g6k3qgfp/

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Printing Order #95914

    defyent
    Participant

    Back to this issue which I still have not solved, in your example when I click the print button, I get a “undefined” message in the page, and nothing else, and I still not get the correct order when using json as the source.

    Printing Order #95916

    defyent
    Participant

    Half fixed it, I’ve fixed it so the initial loaded order prints, by removing sortcolumn and sortdirection from the datasource, however when I resort a column it only prints in the originally loaded order.

    Printing Order #95918

    defyent
    Participant

    Further to this issue, when I fix the undefined problem by adding exportSettings: { fileName: null }, to your example, the printable is also in the wrong order, however if I export the data using the other buttons, it is in the correct order.

    Printing Order #95919

    defyent
    Participant

    Another potentially hazard I’ve found while trying to fix this sorting problem. My software is running over an ssl connection, and I’ve just gotten the error

    “?’ was loaded over a secure connection, but contains a form which targets an insecure endpoint ‘http://jquerygrid.net/export_server/dataexport.php’. This endpoint should be made available over a secure connection.”

    Does this mean jqx is sending my data to another website?? And not only that, but over an insecure connection???

    Printing Order #95955

    Hristo
    Participant

    Hello defyent,

    Thank you for the feedback about printing with a sorted order.
    Also, the error that you saw (in “JSFiddle” maybe) it is because it has some restrictions.
    About the “dataexport.php” file you do not need to worry it is only for demonstration purposes.
    Also, if you have a license you could host this file (or relevant) on your server.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Printing Order #96834

    defyent
    Participant

    Any update on whether this issue has been resolved? It’s the only thing preventing me from moving forward with a commercial license.

    Printing Order #96835

    Hristo
    Participant

    Hello defyent,

    Unfortunately, it is not fixed, yet.
    We work on many tasks and they have a different priority.
    You could check regularly our “Release History” page.
    Also, I would like to suggest you look at the bigger equivalent of the jqxDataTable – jqxGrid.
    Please, take a look this demo (it support this features – printing, and sorting):
    https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/printing.htm?light

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Printing Order #96850

    defyent
    Participant

    I have always wondered what the difference is between jqxGrid and jqxDatatables? Does the printing order bug exist in jqxGrid? I assumed it did since it uses the same exporting code, correct?

    Printing Order #96871

    Hristo
    Participant

    Hello defyent,

    The Grid support correct items order when you print the items after the sorting them. You could check this with the provided demo.
    You could find more about the difference between the jqxGrid and jqxDataTable you could find in this forum topic:
    https://www.jqwidgets.com/community/topic/grid-or-table/#post-52988

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Printing Order #96958

    defyent
    Participant

    Interesting, thank you that helps a lot.

    Printing Order #96959

    defyent
    Participant

    It seems that jqxGrid has the same issue with trying to export data to an external website, I still feel this is a huge security concern, and it is also preventing me from using jqxGrid on a secure connection. There error is

    The page at ‘https://…./’ was loaded over a secure connection, but contains a form which targets an insecure endpoint ‘http://jquerygrid.net/export_server/dataexport.php’. This endpoint should be made available over a secure connection.

Viewing 15 posts - 1 through 15 (of 18 total)

You must be logged in to reply to this topic.