This is a migrated thread and some comments may be shown as answers.

send an mail

1 Answer 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Houssem
Top achievements
Rank 1
Houssem asked on 07 Mar 2016, 03:21 PM

Hello,

the feature is to send mail as an attachment with an excel grid file. My question is how I can generate the excel file without clicking "Export Excel". ?

.ToolBar(tools => tools.Custom().Text(@Html.GetStringResource(Constantes.SendMail)).HtmlAttributes(new { id = "sendMail" }))
.ToolBar(tools => tools.Excel())
.Excel(excel => excel
.FileName(Model.ExportExcelFileName + ".xlsx")
.ForceProxy(true)
.Filterable(true)
.AllPages(true)
.ProxyURL(Url.Action("ExcelSave", "Vol"))
)

 

See PJ.

Thank you.

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 08 Mar 2016, 12:33 PM
Hello,

As an alternative to clicking the Export Excel button, you may call the saveAsExcel client-side method, as described in the Enable Excel Export help article. It is also suggested in the description of the Grid/ Export to Excel demo.

Regards,
Dimitar
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Houssem
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or