How to download only selected rows from grid to Excel?

I see that there is a excel download button in read-only grid.

And can use filter to download what I want.

To go one more step from that and want to download only the selected rows to excel.

How could I do it? 

Would be great to have example too!!

Thank you

  Discussion posts and replies are publicly visible