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

Assign value programmatically to textbox in page Header

1 Answer 309 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marcelo Balbuena
Top achievements
Rank 1
Marcelo Balbuena asked on 20 Jan 2009, 11:19 AM

I’ve made a report based on data base data. Its title and description are in the database and loads accord to user language.
 How can I assign these values to reportNameTextBox and or other textboxes in pageHeader section.

Thank you very much.

Marcelo Balbuena
Hermes Ingeniería - On Move Soluciones
Valencia - España

1 Answer, 1 is accepted

Sort by
0
Marcelo Balbuena
Top achievements
Rank 1
answered on 20 Jan 2009, 12:09 PM

Hello,

For anyone who need, this is the way to do it:

 

        private void pageHeader_ItemDataBound(object sender, System.EventArgs e)

        {

            try

            {

                Telerik.Reporting.Processing.PageSection processingPageHeader =

    (Telerik.Reporting.Processing.PageSection)sender;

 

                Telerik.Reporting.Processing.TextBox txtTitle =

    (Telerik.Reporting.Processing.TextBox)processingPageHeader.ChildElements.Find("reportNameTextBox", true)[0];

                txtTitle.Value = "Report Name";

 

 

            }

            catch (System.Exception ex)

            {

                mError = ex.Message;

            }

        }

Marcelo Balbuena
Hermes Ingeniería - On move Soluciones
Valencia - España

Tags
General Discussions
Asked by
Marcelo Balbuena
Top achievements
Rank 1
Answers by
Marcelo Balbuena
Top achievements
Rank 1
Share this question
or