Sending data back to a controller

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    1 posts
    Member since:
    May 2019

    Posted 01 Jul 2019 Link to this post

    I'm wondering if this idea I've had is possible, and if so, how to go about implementing it.

    Basically, I have a Controller that pulls data out of a MySQL database using Dapper, and a View that is composed of a bunch of grids. All these grids have an Action Method in the controller that is responsible for sending the pulled data over to the grids. Once the data has been loaded into these grids, there are checkboxes next to everything for a user to make selections. 

    The end goal is to generate a PDF file utilizing the data that the user has selected. I've been looking into libraries that would aid in this PDF generation, and I'm wondering if there is a way to pass the selected data back to the controller in order to utilize a C# library for this task of PDF Generation. Otherwise, I will look into JavaScript libraries in order to implement this. Any suggestions would be much appreciated. Thanks!

  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 04 Jul 2019 Link to this post


    Actually we do have two examples that might work for your scenario. The Export Multiple Grids in the Same PDF File and Export Only the Selected Grid Rows to PDF can be combined to achieve the desired result. Also another solution might to populate a table or another Kendo UI Grid (hidden for example) with selected rows from the rest of the grids on the page and then export the grid. 
    Hope that will help. 

    Boyan Dimitrov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top