Progress® Telerik® Reporting R2 2018

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) Version: 12.1.18.718 R2 2018 SP2

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

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy