Progress® Telerik® Reporting R3 2017

ReportViewerApplyParameters Event

Occurs when the viewer's Report property is changed, a parameter value is changed or refresh / preview is triggered from the viewer UI.

Namespace:  Telerik.ReportViewer.Silverlight
Assembly:  Telerik.ReportViewer.Silverlight (in Telerik.ReportViewer.Silverlight.dll)

Syntax

public event ApplyParametersEventHandler ApplyParameters

Value

Type: Telerik.ReportViewer.SilverlightApplyParametersEventHandler

Remarks

Use this event to change / add the parameter values that will be used in the upcoming render operation.

Examples

This example illustrates how to wire the ApplyParameters event and set values for specific parameters in the event handler.
void ReportViewer1_ApplyParameters(object sender, Telerik.ReportViewer.Silverlight.ApplyParametersEventArgs args)
{
    //single value parameter 
    args.ParameterValues["ProductCategory"] = "Components";
    //multi value parameter  
    args.ParameterValues["ProductSubcategory"] = new object[] { "Brakes", "Chains" };
    //non-mergeable parameter value for first (0-based) parameter occurrence in a report book
    args.ParameterValues["report(0).ProductCategory"] = "Components";
}

See Also