Hello,
I am trying to build a Telerik Report (Template) to dynamically build reports based on the DataSource that it binds to. How can I dynamically add controls into each (header, details & footer section)? Please help.
I am trying something similar. But it is not letting me to do that. Please help. Thanks
I am trying to build a Telerik Report (Template) to dynamically build reports based on the DataSource that it binds to. How can I dynamically add controls into each (header, details & footer section)? Please help.
I am trying something similar. But it is not letting me to do that. Please help. Thanks
public partial class _Default : System.Web.UI.Page { | |
protected void Page_Load(object sender, EventArgs e) { | |
// ReportTemplate is an Empty Report without any controls. | |
ReportTemplate Rep = new ReportTemplate(); | |
for (int i = 0; i < 8; i++) { | |
Telerik.Reporting.TextBox h = new Telerik.Reporting.TextBox(); | |
h.Value = "Column" + i.ToString(); | |
PageHeaderSection header = new PageHeaderSection(); | |
Header.Controls.Add(h); | |
} | |
} | |
} |