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

Dynamically Add TextBoxes Into PageHeaderSection

1 Answer 242 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Liby
Top achievements
Rank 1
Liby asked on 16 Jun 2009, 08:31 PM
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

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);  
 
            }  
        }  
    } 


1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 22 Jun 2009, 06:29 AM
Hello Liby,

Please review this forum thread elaborates on the matter.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Liby
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or