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

Can not edit the content of a TextBox at the runtime

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Utku Ozan
Top achievements
Rank 1
Utku Ozan asked on 31 Mar 2009, 08:49 AM
Hi,

I have a report that prints payment information of employees in a Department. All items are fetched in a DataTable and the is set as the DataSource of the report. So far, everything works OK.

But in the PageHeader section there are a few fields I would like to print according to the selection made. Like Department name, Selectino year and Selection Month. The thing is that I am not allowed to interfere with the DataTable to add relvant columns to call althese necessary information databound and relate it to the TextBox with "Fields.DepartmentName".

So I choose to use this code:
txtDepartmentName.Value = GetDepartmentName(this.DeptID); 
in the various method such as:
private void MyReport_NeedDataSource(object sender, System.EventArgs e) 
 
private void MyReport_ItemDataBound(object sender, System.EventArgs e) 
 
private void pageHeader_ItemDataBound(object sender, System.EventArgs e) 

but unfortunately, none of them worked. What am I doing wrong? Where should I make these assignments. Which method duits this situation fine?

Regards...

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 01 Apr 2009, 03:32 PM
Hello Utku Ozan,

Honestly we were not able to understand your inquiry, so we are not sure what exactly you're trying to achieve. Since you mentioned our events, please take a look at the Understanding Report Items help article and make a note of what definition and processing item is and that you need to use the processing items in the context of events.

If we misunderstood your question, please elaborate on it and provide as much info as possible.

Best wishes,
Steve
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Utku Ozan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or