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

Problems with Excel export using kendo 2014.1.318.440

1 Answer 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JspringfielCR
Top achievements
Rank 1
JspringfielCR asked on 04 May 2016, 04:37 PM

Hi I´m using the Kendo.Mvc.dll version 2014.1.318.440, I have some problems adding the action of Export to Excel on my grid, 

Does not recognize the tools.Excel(), it is possible to use this statement with this Kendo version, or am I missing a reference for example a js file needed to bound??

 

Here's the code of the grid. 

  @(Html.Kendo().Grid<Project.Models.GridModel>()
                    .Name("Grid")
                    .Scrollable()
                    .EnableCustomBinding(true)
                    .HtmlAttributes(new { style = "height:auto;" })
                    .DataSource(dataSource => dataSource
                        .Ajax()
                        .Model(model =>
                        {
                            model.Id(x => x.NumOP);
                        })
                        .ServerOperation(false)
                        .PageSize(20)
                        .Read(read => read.Action("LoadGrid", "GridController"))
                        )

                    .Columns(columns =>
                    {
                        columns.Bound(p => p.Name).Title("Name").Width(80);
                        columns.Bound(p => p.Description).Title("Description").Width(200);
                        columns.Bound(p => p.Amount).Title("Amount").Format("{0:0,0.0}").Width(100);

                    })
                    .ToolBar(tools => tools.Excel())
                    .Excel(excel => excel
                        .FileName("ExcelFile.xlsx")
                        .ProxyURL(@UrlAction("Excel_Export_Save", "CreditosActivos"))
                        )
                    )

 

Thanks for help

 

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 05 May 2016, 07:30 AM
Hello,

This version of Kendo.Mvc.dll does not support export to Excel. We have added Export to Excel functionality in Q3 2014 (2014.3.1119)  release, so I would recommend you to upgrade to this or earlier version.

Regards,
Milena
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
JspringfielCR
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or