CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

ReRender on Change?

by Soren SDF » 27 Sep 2013 13:48

Hi.

I have a region and i want to toggle its visibility with when i set the state of a checkbutton.
I'have put this in the forms on render eventhandler:

IF CheckBtnsRapporter.CheckButtons.Items[0].Checked THEN
RegFrameKvittensOptions.Style.Values['display']:= ''
ELSE
RegFrameKvittensOptions.Style.Values['display']:= 'none';

If i check the checkbutton and press another button on the form it rerenders and displays the region, but i would prefer to have the checkbuttons OnChange event do it instead.
Is this possible?

T.I.A.
Sören
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Alexander Bulei » 27 Sep 2013 14:05

Hi Soren,

Did you try set the Visibility property?

delphi code
RegFrameKvittensOptions.Visible:= False;


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Soren SDF » 27 Sep 2013 14:40

I have now. :-)
Makes no difference i'm afraid. It seems that when i put something in the OnChange of the CheckButtons the form rerenders and sets checkbuttons to checked=false, which of course makes the region stay invisible.
I described the same problem in the thread "Button and Checkbuttons" under General.

Sören
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Alexander Bulei » 27 Sep 2013 14:49

Hi Soren SDF,

Soren SDF wrote:I have now. :-)
Makes no difference i'm afraid. It seems that when i put something in the OnChange of the CheckButtons the form rerenders and sets checkbuttons to checked=false, which of course makes the region stay invisible.
I described the same problem in the thread "Button and Checkbuttons" under General.

Sören


Please check your thread under general.

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQMCheckButtons

Who is online

Users browsing this forum: No registered users and 0 guests

Contact Us.