Page 1 of 1

Control a runtime

PostPosted: 21 May 2013 00:31
by zsleo
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

Re: Control a runtime

PostPosted: 21 May 2013 09:41
by Jorge Sousa
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

Re: Control a runtime

PostPosted: 21 May 2013 10:41
by zsleo
Yes. That is what I meant.

Your advice worked perfectly...

Thanks.