Hello,
I'm using VS 2008 Q1 2010 Telerik Reporting
I'm attempting to set and bind a Telerik.Reporting.Processing.Table inside of the Detail's detail_ItemDataBound event and I'm running into some trouble.
I currently have a simple table inside my Report's detail. The table has a header and a detail row that repeats.
Originally I was binding the table to a DataTable inside of the DataBind() and having no issues. After having some trouble getting the table's groupings correct I decided it would be a little more practical move the Telerik.Reporting.Processing.Table binding inside the detail_ItemDataBound event and bind it there with the correct data. When I move the binding inside the detail_ItemDataBound event I get a blank table with no data.
Below is my code from the detail_ItemDataBound event:
Am I missing anything simple that would keep the tblReport from binding correctly?
Thanks for the help and let me know if you need anything else,
Allen
I'm using VS 2008 Q1 2010 Telerik Reporting
I'm attempting to set and bind a Telerik.Reporting.Processing.Table inside of the Detail's detail_ItemDataBound event and I'm running into some trouble.
I currently have a simple table inside my Report's detail. The table has a header and a detail row that repeats.
Originally I was binding the table to a DataTable inside of the DataBind() and having no issues. After having some trouble getting the table's groupings correct I decided it would be a little more practical move the Telerik.Reporting.Processing.Table binding inside the detail_ItemDataBound event and bind it there with the correct data. When I move the binding inside the detail_ItemDataBound event I get a blank table with no data.
Below is my code from the detail_ItemDataBound event:
private
void
detail_ItemDataBound(
object
sender, EventArgs e)
{
Telerik.Reporting.Processing.DetailSection detail = (Telerik.Reporting.Processing.DetailSection)sender;
Telerik.Reporting.Processing.TextBox txtHierarchicalEntityID = (Telerik.Reporting.Processing.TextBox)detail.ChildElements.Find(
"txtHierarchicalEntityID"
,
true
)[0];
Telerik.Reporting.Processing.Table tblReport = (Telerik.Reporting.Processing.Table)detail.ChildElements.Find(
"tblReport"
,
true
)[0];
int
hierarchicalEntityID = Convert.ToInt32(txtHierarchicalEntityID.Text);
dsReporting dsBindingData =
new
dsReporting();
foreach
(dsReporting.AssessmentResultsChartRow currRow
in
dsRaw.AssessmentResultsChart.Rows)
if
((
int
)currRow[
"HierarchicalEntityID"
] == hierarchicalEntityID)
dsBindingData.AssessmentResultsChart.ImportRow(currRow);
dsBindingData.AcceptChanges();
tblReport.DataSource = dsBindingData.AssessmentResultsChart;
}
Am I missing anything simple that would keep the tblReport from binding correctly?
Thanks for the help and let me know if you need anything else,
Allen