Hello,
I have a table in the detail section of a subreport, so it should recurr for each element in the bound datasource (in this case objectives). SO there shoudl be one talb eper objective. The report was working fine and then stopped after upgrading to the most recent version. I'm wondering if there is a recommended way to do what I am doing... See capture.png
Essentially for each objective, I want to display the result in a table, because the text of each attribute is long and the table will expand appropriately to display the item. The Goal number in green displays correctly, however the attributes such as Area of desired change are blank..
I've tried setting the textboxes in the table directly on the itemdatabound event of the detail section (see commented text below) and this does work but if there are three objectives it sets all three instances of the table textboxes rather than the current detail section (and table) only. I've also tried the NeedDataSource of the table... what is the best way to go about this?
private void TelerikRptTreatmentPlanSub_NeedDataSource(object sender, EventArgs e){ (sender as Telerik.Reporting.Processing.Report).DataSource = ObjectiveService.GetForTreatmentPlan(this.Parameter1);}private void detail_ItemDataBinding(object sender, EventArgs e){ Telerik.Reporting.Processing.DetailSection section = (sender as Telerik.Reporting.Processing.DetailSection); object _iD = section.DataObject["ID"]; tblObjective.DataSource = ObjectiveService.GetByID(Int32.Parse(_iD.ToString())); //txtGoal1AreaOfDesiredChange.Value = _objective.ObjectiveAreaofDesiredChange; //txtGoal1TimeFrame.Value = _objective.TimeFrameandModality; //txtGoal1Objective.Value = _objective.Description; //txtGoal1BaseLines.Value = _objective.Baselines; //txtGoal1MeasuredBy.Value = _objective.MeasuredBy; //txtGoal1Interventions.Value = _objective.Interventions;}
