It is not possible to modify the graph scale inside an event, since there is no access to the Graph Members
during report processing
In addition, Telerik Reporting provides different declarative means that replace the need for events and provide the needed flexibility to handle most tasks: Using Expressions
, Conditional Formatting
and User Functions
. These tools are typically the most productive way to build declarative reports and should be favored over using events. Additionally events can't be used with XML (trdx) report definitions on which the Standalone Report Designer
Currently, the only option to define the NumericalScale
of a Graph item
inside a sub-report is to modify the sub-report's report definition inside your application, before the report is displayed in a report viewer:
var subReport =
var graph = subReport.Items.Find(
//Assuming you have a single Cartesian coordinate system in your graph.
var cartesianCoordinateSystem = (Telerik.Reporting.CartesianCoordinateSystem)graph.CoordinateSystems;
//Assuming your X axis has a numerical scale.
var numericalScale = (Telerik.Reporting.NumericalScale)cartesianCoordinateSystem.XAxis.Scale;
numericalScale.Minimum = GetMinValue();
numericalScale.Maximum = GetMaxValue();
Then you need to assign the modified sub-report to the SubReport item
in the main report:
var mainReport =
var subReportItem = (mainReport.Items.Find(
var irs =
irs.ReportDocument = subReport;
subReportItem.ReportSource = irs;
We also have plans to expose some of the NumericalScale
members, so they can be set using Bindings
, in a future version of the product.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.