jQWidgets Forums

jQuery UI Widgets Forums Grid Previous post Export PDF

This topic contains 1 reply, has 1 voice, and was last updated by  Eking 5 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Previous post Export PDF #108205

    Eking
    Participant

    Hello,
    New to jqWidgets. Looking at the grid export. Could you expand on the response or provide an example.
    Not sure how to use the answer.
    $.jqx.pdfExport = {
    orientation: “landscape”,
    pageSize: “letter”
    };

    Thank you in advance.

    Previous post Export PDF #108208

    Eking
    Participant

    Answer.
    The pdfExport parameter was correct. The issue was when building the document the default was portrait.
    Adding the following worked correctly.
    $.jqx.pdfExport = {
    orientation: “landscape”,
    pageSize: “letter”
    };
    J = {
    header: true,
    filterBy: null,
    groupBy: null,
    style: null,
    fileName: “jqxForm”,
    pageOrientation: “landscape”,
    expandChart: “+”,
    collapseChar: “-”
    }

    $(“#contractlist”).jqxGrid(‘exportview’, ‘pdf’, J);

    If anyone has better or shorter solution let me know.

    Thanks

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

You must be logged in to reply to this topic.