Problems with Excel export using kendo 2014.1.318.440

2 posts, 0 answers
  1. JspringfielCR
    JspringfielCR avatar
    3 posts
    Member since:
    May 2016

    Posted 04 May Link to this post

    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

     

  2. Milena
    Admin
    Milena avatar
    224 posts

    Posted 05 May Link to this post

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