Refresh a checkbox after render

Stimulsoft Reports.NET discussion
Post Reply
alepage
Posts: 53
Joined: Mon Jan 19, 2009 7:02 am
Location: France

Refresh a checkbox after render

Post by alepage »

Hi,

In a report, we used checkbox components with this script in the click event :

Code: Select all

Stimulsoft.Report.Components.StiCheckBox check = sender as Stimulsoft.Report.Components.StiCheckBox;
 
if (check.CheckedValue == null || ((bool)check.CheckedValue) == false)
	check.CheckedValue = true;
else
	check.CheckedValue = false;

Invalidate();
It works well, but we must scroll the report in the viewer to see the change of state.
Here is a capture :
checkbox_rendering.gif
checkbox_rendering.gif (624.3 KiB) Viewed 682 times
Is there a solution to prevent this effect ?

Thanks,
Arnaud
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: Refresh a checkbox after render

Post by Lech Kulikowski »

Hello,

You can use the Editable property for that task.

Thank you.
alepage
Posts: 53
Joined: Mon Jan 19, 2009 7:02 am
Location: France

Re: Refresh a checkbox after render

Post by alepage »

Hello,

Unfortunately, there is no effect with this property. We use the 2022.3.2 version of Stimulsoft Report.
Here is the sample
INTER - DEP - SAV - 6.mrt
(133.94 KiB) Downloaded 82 times
I use in the overview above.

Thank you.
Arnaud
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Refresh a checkbox after render

Post by Max Shamanov »

Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#9386
Max Shamanov
Posts: 768
Joined: Tue Sep 07, 2021 10:11 am

Re: Refresh a checkbox after render

Post by Max Shamanov »

Hello,

The issue is fixed.
Fix will be available in the 2023.1.8 release build.

Thank you.
Post Reply