Page 1 of 1

Refresh a checkbox after render

Posted: Wed Dec 07, 2022 10:52 am
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 737 times
Is there a solution to prevent this effect ?

Thanks,
Arnaud

Re: Refresh a checkbox after render

Posted: Wed Dec 07, 2022 1:42 pm
by Lech Kulikowski
Hello,

You can use the Editable property for that task.

Thank you.

Re: Refresh a checkbox after render

Posted: Fri Dec 09, 2022 3:56 pm
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 95 times
I use in the overview above.

Thank you.
Arnaud

Re: Refresh a checkbox after render

Posted: Mon Dec 12, 2022 9:10 am
by Max Shamanov
Hello,

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

Thank you.
#9386

Re: Refresh a checkbox after render

Posted: Wed Feb 22, 2023 7:16 am
by Max Shamanov
Hello,

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

Thank you.