Grid PDF Export shows filter row

2 posts, 0 answers
  1. cameron
    cameron avatar
    1 posts
    Member since:
    Sep 2016

    Posted 25 Mar 2020 Link to this post

    have a simple grid that when I export to PDF the filter ros andboxes are on the PDF,    How do I exclude these from the PDF document.

    This is a MVC web app.


    Thanks in advance


    @(Html.Kendo().Grid< ShitTruckLibrary.Models.Contact>()
              .ToolBar(tools => tools.Pdf())
            .Pdf(pdf => pdf
                .Margin("2cm", "1cm", "1cm", "1cm")
                .FileName("Kendo UI Grid Export.pdf")
                .ProxyURL(Url.Action("Pdf_Export_Save", "Grid"))
            .Columns(columns =>
                columns.Bound(c =>;
                columns.Bound(c => c.ForeName).Title("Forename").Filterable(ftb => ftb.Cell(cell => cell.ShowOperators(false)));
                columns.Bound(c => c.SurName).Title("Surname").Filterable(ftb => ftb.Cell(cell => cell.ShowOperators(false)));
                columns.Bound(c => c.CompanyName).Title("Customer").Filterable(ftb => ftb.Cell(cell => cell.ShowOperators(false)));
                columns.Bound(c => c.Address1).Title("Address 1").Filterable(ftb => ftb.Cell(cell => cell.ShowOperators(false)));
                columns.Bound(c => c.Address2).Title("Address 2").Filterable(ftb => ftb.Cell(cell => cell.ShowOperators(false)));
                columns.Bound(c => c.Phone1).Title("Phone 1");
                columns.Bound(c => c.Phone2).Title("Phone 2");

            .HtmlAttributes(new { style = "height: 50vh;" })
            .Filterable(ftb => ftb.Mode(GridFilterMode.Row))
            .Pageable(pageable => pageable

            .DataSource(dataSource => dataSource

                    .Transport(transport =>

                        transport.Read(read => read.Url("getwork").Data("getSearch").Type(HttpVerbs.Get));



  2. Petar
    Petar avatar
    437 posts

    Posted 26 Mar 2020 Link to this post

    Hi Cameron,

    You can remove the filter rows from the exported PDF document by adding the following CSS:

          .k-pdf-export .k-filter-row{

    You can check this Dojo example that demonstrates the usage of the above code. The result of the PDF export in the ASP.NET MVC context should be the same as in the linked Dojo.  

    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top