ReportParameter PropertyChanged event handler not working

1 Answer 95 Views
Interesting resources
ted
Top achievements
Rank 1
ted asked on 16 Nov 2022, 05:53 PM

reportParameter  PropertyChanged event handler not working, please help

our application is using this version of telerik -- "telerikReportViewer-12.0.18.125.min.js"

Here is a sample of my code

Telerik.Reporting.ReportParameter reportParameter1 = new Telerik.Reporting.ReportParameter();

reportParameter1.PropertyChanged += ReportParameter1_PropertyChanged;

private void ReportParameter1_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{

       //some code removed 

 }

A break point in ReportParameter1_PropertyChanged is never hit; do you have a SDK or some code snipping of how this event handler is used and how it is called?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 21 Nov 2022, 04:01 PM

Hello Ted,

We invoke the PropertyChanged only for the setter of the ReportParameter.Name property so updating any other property will not execute your custom code.

The reason we use the event only for this property is that it would otherwise be too expensive performance-wise to do it for all of the report parameter properties.

May I ask what you would like to do when such an event would occur? If the idea was to update the report in this event, I would instead advise looking into using bindings or conditional formatting in order to do so. 

Please let me know if you would need further assistance or recommendations.

Regards,
Dimitar
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Interesting resources
Asked by
ted
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or