Replace link with CSV content AFTER creating element 

replacing the csvContent before constructing element may not work for a large grid
as large csvContent -> large href -> angular.element (i.e. jQuery.parseHTML) may omit part of the href content
Merge pull request #1903 from mankintong/master

Replace link with CSV content AFTER creating element