Posts

Showing posts from May, 2016

Export excel and Pdf with Kendo UI MVC c#

Image
Export to Excel and Pdf Export excel and pdf is now a days a basic needs of clients for saving reports or tables data. Kendo UI has build features for exporting table data to excel and pdf with Excel() and Pdf() functions. Functions are used as below. @(Html.Kendo().Grid(Model) .Name("timeGrid") .NoRecords() .Columns(columns => { columns.Bound(p => p.Field1).Title("Field1"); columns.Bound(p => p.Field2).Title("Field2"); columns.Bound(p => p.Field3).Title("Field3"); }).Groupable() .Sortable() .Excel(excel => excel .FileName("FileName.xlsx").AllPages(true) .Filterable(true) .ProxyURL(Url.Action("Excel_Export_Save", "Controller")) ) .Pdf(pdf => pdf .AllPages() .FileName("FileName.pdf").ForceProxy(true) .ProxyURL(Url.Action("Pdf_Export_Save...