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 -
please provide the solution as soon as possible.
Thanks and regards

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: