3 Answers, 1 is accepted
Hello Aleksey,
Thank you for elaborating on this issue. I have reproduced it and logged it for further research. As a token of gratitude I have updated your Telerik points.
Regards,
Peter
Progress Telerik
Hello Peter,
any news on that issue? I have spent a full day trying to find a bug in my programming until I came across this thread. Is there any workaround so the events don't get fired twice?
Regards
Heiko
Hi Heiko,
I am really sorry for the inconvenience this issue causes you and I completely understand that this could bring a negative impact on your work. I converted the internal bug report into a public one- WPF Report Viewer events fires twice and I increased its priority. I also voted for it on your behalf, so when there is an update on the status you will receive a notification.
I also discussed the case with one of our developers, however, I am afraid that currently, we can not provide a workaround for the problem.
Please, let us know if you have any questions.
Regards,
Neli
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi
This workaround/hack works for me:
DateTime lastTimeCalled;
private void ReportViewer_InteractiveActionExecuting(object sender, InteractiveActionCancelEventArgs args)
{
// if method was called within the last second, return
var now = DateTime.Now;
if ((now - lastTimeCalled) < TimeSpan.FromSeconds(1))
return;
lastTimeCalled = now;
if (args.Action is CustomAction customAction)
{
// my code here
}
}