This is a migrated thread and some comments may be shown as answers.
Sending data back to a controller
1 Answer 4 Views
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 01 Jul 2019, 04:58 PM

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!

1 Answer, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 04 Jul 2019, 04:01 PM
Hello,

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. 

Regards,
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.
Asked by
Ryan
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or