Telerik blogs
  • Web ASP.NET AJAX

    Server Side Responsive Layouts in ASP.NET AJAX

    list image
    If you are developing a web site, one question that is very prevalent in today is, "Is it Responsive?" Pretty much any web developer you ask would rate this as a top priority when developing a modern ...
  • Desktop WinForms

    Multiple child views with RadGridView for WinForms

    One of the most wanted features related to hierarchy in RadGridView is the support for hierarchy containing one-to-many relations. Now, this is possible by using tabbed child views. We added the feature in our latest release – Q2 2009.     However, RadGridView is not restricted to show only tables. Child views can be used to display any relevant information (e.g. rich text, picture or even a chart). If fact you can use any RadElement or host a control by using the RadHostItem. In the example below I will demonstrate how to do it.   You should follow a few simple steps:   1. First bind the...
  • Release

    Send Telerik Report as email attachment

    The Report Viewers (Win and Web) do not support sending of reports via e-mail out-of-the-box. To mail a report you have to first render the report programmatically into a convenient format and then attach it to a mail message. Here is a possible way of how to achieve this by using the SmtpClient object: void MailReport(Telerik.Reporting.Report report, string from, string to, string subject, string body){string mimeType; string extension; Encoding encoding; byte[] reportBytes = ReportProcessor.Render("PDF", report, null, out mimeType, out extension, out encoding); MemoryStream ms = new MemoryStream(reportBytes); ms.Position = 0; Attachment attachment = new Attachment(ms, report.Name + "." + extension); MailMessage msg = new MailMessage(from, to, subject, body); msg.Attachments.Add(attachment); SmtpClient client = new SmtpClient(smptHost); ...
    September 02, 2008