Hi,
I have a trouble displaying a value in a TextBox.
I found simmilar post but unfortunately the link for it is broken (http://www.telerik.com/community/forums/reporting/telerik-reporting/assigning-datatable-column-to-textbox.aspx)
Here is my setup:
On a web form I do the following:
BusinessObjects is a EntitySpaces's object.
In the report designer in the detail section (on panel, list control) I have a TextBox with its value set to "=Construction_Mgmt_In".
This text box's value is not being displayed.
However in ItemDataBound for the detail item I can assign textbox's value in the following way.
I would like to be able to specify TextBox value in the designer rather than through item's ItemDataBound event.
Also do you know how to set up EntitySpaces' esDataSource as a DataSource for the report?
Thank you,
Pawel Mozdzen
I have a trouble displaying a value in a TextBox.
I found simmilar post but unfortunately the link for it is broken (http://www.telerik.com/community/forums/reporting/telerik-reporting/assigning-datatable-column-to-textbox.aspx)
Here is my setup:
On a web form I do the following:
BusinessObjects.ProjectStatementReportCollection collection = new BusinessObjects.ProjectStatementReportCollection(); |
collection.Query.Where(collection.Query.ProjectStatementReportId == projectStatementReportId); |
DataTable dt = collection.Query.LoadDataTable(); |
ProjectStatementReport report1 = new ProjectStatementReport(); |
report1.DataSource = dt; |
ReportViewer1.Report = report1; |
In the report designer in the detail section (on panel, list control) I have a TextBox with its value set to "=Construction_Mgmt_In".
This text box's value is not being displayed.
However in ItemDataBound for the detail item I can assign textbox's value in the following way.
private void detail_ItemDataBound(object sender, EventArgs e) |
{ |
Telerik.Reporting.Processing.DetailSection section = (Telerik.Reporting.Processing.DetailSection)sender; |
System.Data.DataRow row = (System.Data.DataRow)section.DataObject.RawData; |
Telerik.Reporting.Processing.TextBox procTextbox = (Telerik.Reporting.Processing.TextBox)section.ChildElements.Find("textBox2", true)[0]; |
procTextbox.Value = row["Construction_Mgmt_In"].ToString(); |
} |
I would like to be able to specify TextBox value in the designer rather than through item's ItemDataBound event.
Also do you know how to set up EntitySpaces' esDataSource as a DataSource for the report?
Thank you,
Pawel Mozdzen