it would be a ajax call to server to initiate a excel file download, otherwise client side doesnt have a way to deal with files or io. at the max you could stream it as csv in a popup and copy paste it into excel file.
any grid is similiar to html table , with a added intelligence.(but not too intelligent to support export data)