This is a migrated thread and some comments may be shown as answers.

Send Grid in email body

3 Answers 211 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vinicius
Top achievements
Rank 1
Vinicius asked on 18 Jan 2013, 04:45 PM
Hi,

I need to send an Email containing some information and also 3 RadGrid's. I would like to paste them in the body of email (not attached) in the same way that they are in the software (skin style) but with no paging / buttons and also with hierarchy expanded.

Thanks for your help,

Vinicius

3 Answers, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 23 Jan 2013, 07:03 PM
Hello Vinicius,

There are two possible ways how this can be achieved:
  1. The first one and more easy to implement is to attach an HTML file to the email. On how to get the HTML and styles of the grid I suggest that you review this code library. In the example provided a RadGrid is being generated as HTML and the corresponding styles are applied. You can use the example to create files which will be attached to the mails sent.
  2. The second technique that you can use is kind of similar. Since you can not use links to an external stylesheet or include a head section with styles in the email content you would have to use inline styles. Again you would have to get the outerHTML of the grid and then use a tool like CSS Inline Transformer to transform the stylesheets to inline styles.

All the best. Angel Petrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ridwan
Top achievements
Rank 1
answered on 05 Aug 2020, 05:09 PM

Hi Team Kendo,

I am working on a Treelist. How can i send the selected rows - parent/child in the body of an email? 

Regards.

Ridwan.

0
Doncho
Telerik team
answered on 07 Aug 2020, 11:28 AM

Hi Ridwan,

Could you please clarify if the Treelist control in question is from the Kendo UI suite - https://demos.telerik.com/kendo-ui/treelist/index,

or is it the RadTreeList from Telerik UI for ASP.NET AJAX - https://demos.telerik.com/aspnet-ajax/treelist/examples/overview/defaultcs.aspx

Kind regards,
Doncho
Progress Telerik

Tags
Grid
Asked by
Vinicius
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Ridwan
Top achievements
Rank 1
Doncho
Telerik team
Share this question
or