send an mail

2 posts, 0 answers
  1. Houssem
    Houssem avatar
    4 posts
    Member since:
    Jul 2015

    Posted 07 Mar Link to this post


    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")
    .ProxyURL(Url.Action("ExcelSave", "Vol"))


    See PJ.

    Thank you.


  2. Dimitar
    Dimitar avatar
    276 posts

    Posted 08 Mar Link to this post


    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.

    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
  3. UI for ASP.NET AJAX banner
Back to Top