Grid PDF Export Fails with MVC Bundling

4 posts, 0 answers
  1. Paul
    Paul avatar
    28 posts
    Member since:
    Mar 2013

    Posted 26 Jan Link to this post

    Hi there,

    I believe I have found a bug with the PDF export on the grid in Q2 2015 and onwards. I have reproduced this bug using the VS2015 PDF Export demo  supplied with the Kendo install.

    In order to replicate this bug, please enable bundling optimizations in the BundleConfig class:

     

    BundleTable.EnableOptimizations = true;

     

    Grid export to PDF will no longer work - it will fail with an error about the font:

    "Cannot load font from http://localhost/Content/kendo/fonts/DejaVu/DejaVuSans-Bold.ttf?v=1.1"

    It would seem that the path is working from the kendo folder and excluding the version number? The actual path to the font file should be:

    "http://localhost/Content/kendo/2015.2.624/fonts/DejaVu/DejaVuSans-Bold.ttf"

    The export works without issue when optimizations are disabled.

    Regards,

     

    Paul McKay

     

  2. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 28 Jan Link to this post

    Hello Paul,

    I would recommend that you replace the minified js files with their non-minified version when using the bundle optimization.
    I hope this helps.

    Regards,
    Daniel
    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
  4. Paul
    Paul avatar
    28 posts
    Member since:
    Mar 2013

    Posted 04 Feb in reply to Daniel Link to this post

    Hi there,

    I'm afraid this doesn't really help - regardless of whether it solves the problem or not, this isn't the way that your MVC wrappers install into the project - they always install the minified version of the scripts.

    In order to use bundling properly, do I really have to manually replace every single one of these files with the non-minified version?

     

    Thanks,

    Paul

  5. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 08 Feb Link to this post

    Hello Paul,

    I understand your concern. Could you please try to add the standard, non-minified scripts and styles to the corresponding folders and see if the problem is resolved this way. The bundling framework should be able to select the proper version.
    Bundling and minification

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