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
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:
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.
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.