0

I am developing a Dashboard for a web application , dashboard shows various Chart (Telerik RadChart) Images and GridView Tables. See below image:

enter image description here)

To increase performance of dashboard loading we are implementing Caching for dashboard.

We are generating jpeg images from RadChart everyday and storing in a folder on server, these images are available whole day in caching, next day they gets dirty and regenerated on Dashboad load.

I am able to successfully export RadChart to images but don't know how to export GridView output as images.

Let me know if you need more information.

Imran Rizvi
  • 7,331
  • 11
  • 57
  • 101

1 Answers1

0

I would say the best way to go about this would be to:

  1. Generate the gridview as html. You may have to manually do this by looping through your data and outputting it as an html table.

  2. Render your outputted html as an image.

Here is a link that explains converting html to images in c#.

Otherwise have a look through this answer Converting gridview into image. It seems your question is quite common.

Community
  • 1
  • 1
startupsmith
  • 5,554
  • 10
  • 50
  • 71
  • how can I convert only grid output to html? , grid is a part of a user control – Imran Rizvi Jan 03 '12 at 10:07
  • in the page you can see there are more control than gridview, I tried your way but it has limit that it can render gridview as Response only, I want only the html output and I'll add it to parent control and create one image of all these control – Imran Rizvi Jan 03 '12 at 11:38