Download grid

I have a read-only grid in interface.

on click of button I want to download the grid in pdf.

On click of 2nd button I want to export the grid to excel.

How can I do this?

  Discussion posts and replies are publicly visible