send an mail

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

    Posted 07 Mar Link to this post

    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.

     

  2. Dimitar
    Admin
    Dimitar avatar
    281 posts

    Posted 08 Mar Link to this post

    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
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top