Relocate Export toolbar

4 posts, 1 answers
  1. Erik
    Erik avatar
    42 posts
    Member since:
    Aug 2012

    Posted 19 Sep 2017 Link to this post

    Running ASP.NET MVC grid.  Is there a way to reposition the export toolbar instead of always being located at the top?  Either at the bottom or a way to invoke the export function from an external link/button?
  2. Answer
    Preslav
    Admin
    Preslav avatar
    574 posts

    Posted 20 Sep 2017 Link to this post

    Hello Erik,

    Based on your post, I believe that the best approach to achieve the desired result is initiating the Excel/PDF export of the Grid from an external button.

    To achieve that, invoke the saveAsExcel or the saveAsPDF methods from the relevant buttons.
    For a runnable example, check this Dojo: https://dojo.telerik.com/OHUkU


    Regards,
    Preslav
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Oli
    Oli avatar
    8 posts
    Member since:
    Oct 2015

    Posted 07 Dec 2017 in reply to Preslav Link to this post

    With this approach, how is it possible to use the column template as the value for the cell (as outlined in the below link)?

    https://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/excel/column-template-export

    The approach there seems to depend upon the default toolbar position as the function uses the e parameter which you don't have access to when using the saveAsExcel method.

  4. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 11 Dec 2017 Link to this post

    Hi Oli,

    The excelExport event will fire with the same parameters when it is called manually from the Grid`s API, so you should be able to use the same approach as in the HowTo article. If any further assistance is needed, could you please share a dojo example demonstrating the problematic behavior, so we can debug it locally?

    Best Regards,
    Konstantin Dikov
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top