Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
625
Export CSV & PDF
posted

Hi,
We are using jQuery data grid in our web page to load data and trying to embed export csv and pdf option in it.

We couldn't this it in jQuery. But this options are available in the Angular data grid.

And also in angular and react JS has nice feature UI and animation effect.

Can you help me how to use this type feature in jQuery DataGrid?

  • 1300
    Offline posted

    Hello Robin,

    After investgating this further, I have determined that the igGrid does not support exporting to pdf out of the box. However, what I could suggest is generating a pdf with a table by using jsPDF and passing the headers and the rows to the table. This could be achieved as follows:

    let doc = new jsPDF();

     doc.autoTable({

                head: [headerRow],

                body: rows,

    });

    doc.save("table.pdf")

    I have prepared a sample, demonstrating the described behavior. Please test it on your side and let me know if you need any further information regarding this matter.

    Regards,
    Monika Kirkova,
    Infragistics