CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Control a runtime

by zsleo » 21 May 2013 00:31

I want to control visibility at run time but it is not working

Code: Select all
procedure TIWForm1.DisplayRegions(ip_Num:smallint);
begin
  IWCGPanelList1.Items[0].Visible := (ip_Num = 0);
  IWCGPanelList1.Items[1].Visible := (ip_Num = 1);
  IWCGPanelList1.Items[2].Visible := (ip_Num = 2);
end;


Settings at design time work perfectly.

TIA
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Jorge Sousa » 21 May 2013 09:41

Hello

We assume that by runtime, you mean in ajax / async events.

This control doesn't support changes in ajax events, so you have to call

IWCGPanelList1.AjaxReRender; at the end.

Best Regards

cgdevtools
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by zsleo » 21 May 2013 10:41

Yes. That is what I meant.

Your advice worked perfectly...

Thanks.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33


Return to CGPanelList

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.