Page 1 of 1

Create IWCGJQCheckBoxList item with code

PostPosted: 06 Oct 2015 09:55
by ariopax
Hi
I use this code for create IWCGJQCheckBoxList items .
Code: Select all
  for I := 1 to ADOQuery1.RecordCount-1 do
  begin
    with IWCGJQCheckBoxList1.Items.Add do
    begin
      Value:= ADOQuery1.Fields[0].AsString;
      Caption:= ADOQuery1.Fields[1].AsString;
    end;
  end;


On onclick event Button.But IWCGJQCheckBoxList don't show anything.What must be I set?

Best Regards.

Re: Create IWCGJQCheckBoxList item with code

PostPosted: 06 Oct 2015 09:58
by Alexander Bulei
Hello,

On onclick event Button


You need call AjaxReRender function, also, you can find a lot of useful information about this function in our forum.

Best Regards.

Re: Create IWCGJQCheckBoxList item with code

PostPosted: 06 Oct 2015 10:48
by ariopax
Hi

I use IWCGJQCheckBoxList1.AjaxReRender(); and solved!

Tank you. :D


Best Regards.