export the grid

Hi sir
i want to export the grid in client side either in pdf and execl format.
i am using this script

after on click button i cal this -
onclick=“mygrid.toExcel(‘codebase/grid-excel-php/generate.php’);”
please provide the solution as soon as possible.
Thanks and regards
Sam

Unfortunately your issue is not clear.
Please, clarify what exactly going wrong.
Here you can find a detailed tutorial about the export the grid to excel:
docs.dhtmlx.com/doku.php?id=dhtmlxgrid:excel