Download Button on DataGrid

Hi i am trying to create a download button allowing the user to click the button and download the file stored. I am trying to write a script template but cannot seem to get it to work. Any ideas? this is what i have at the minute..

<script id="document" type="text/x-template">
    <a asp-action="Download" class="btn blue-assembly"
       asp-route-filename="${FilePath}">
        Download
    </a>
</script>

1 Reply

TS Thavasianand Sankaranarayanan Syncfusion Team April 17, 2019 06:48 AM UTC

Hi Karl, 

Greetings from Syncfusion support. 

Based on your query we suspect that you want to insert a custom button inside Grid column. We have already discuss about “how to render a custom button inside a Grid column” query in the following documentation. 


Please let us know if you need further assistance on this.  

Regards, 
Thavasianand S. 


Loader.
Up arrow icon