Hi there, I need to access the value of a subreports parameter inside the NeedDataSource event. How is this best accomplished?
I have tried the following but the value never changes:
When I have a Databind event for a textbox I can the following:
This works but how can I get the parameter's value into string object?
Regards,
Christian
I have tried the following but the value never changes:
private void chart1_NeedDataSource(object sender, EventArgs e){ Telerik.Reporting.Processing.Chart procChart = (Telerik.Reporting.Processing.Chart)sender; Telerik.Reporting.Chart chart = (Telerik.Reporting.Chart)procChart.ItemDefinition; chart.ChartTitle.TextBlock.Text = chart.Report.ReportParameters["Branch"].Value.ToString();}When I have a Databind event for a textbox I can the following:
private void textBox3_ItemDataBinding(object sender, EventArgs e){ Telerik.Reporting.Processing.TextBox procTB = (Telerik.Reporting.Processing.TextBox)sender; Telerik.Reporting.TextBox tb = (Telerik.Reporting.TextBox)procTB.ItemDefinition; tb.Value = "= Parameters.Branch.Value";}Regards,
Christian