Running ASP.NET MVC grid. Is there a way to reposition the export toolbar instead of always being located at the top? Either at the bottom or a way to invoke the export function from an external link/button?
3 Answers, 1 is accepted
0
Accepted
Preslav
Telerik team
answered on 20 Sep 2017, 04:00 PM
Hello Erik,
Based on your post, I believe that the best approach to achieve the desired result is initiating the Excel/PDF export of the Grid from an external button.
To achieve that, invoke the saveAsExcel or the saveAsPDF methods from the relevant buttons.
The approach there seems to depend upon the default toolbar position as the function uses the e parameter which you don't have access to when using the saveAsExcel method.
0
Konstantin Dikov
Telerik team
answered on 11 Dec 2017, 08:24 AM
Hi Oli,
The excelExport event will fire with the same parameters when it is called manually from the Grid`s API, so you should be able to use the same approach as in the HowTo article. If any further assistance is needed, could you please share a dojo example demonstrating the problematic behavior, so we can debug it locally?