Help with dhtmlxGrid toExcel and toPdf

Hi ,
first of all I would like to thank you for the great framework you are building.

My issue is, I created a dhtmlxGrid from HTML and everything works fine except for the export.

I includded the grid_export.js file, and have this as my button:

clearly I have used the online generator, but the problem is , when I click the button, nothing happens at all… if I add an alert(1) after the “mygrid.toPDF(…)” nothing happens. My guess is that, the function toPDF is not being seen as a member of mygrid which is initialized as a global variable ?

Thank you in advance for helping me out.

Hi,
could you provide link to page with grid or maybe archive with demo?