Page 1 of 1

TIWCGJQCheckBoxList - programmatically setting item.Selected

PostPosted: 05 Sep 2014 15:58
by ScottWGast
I'm using this code to set each of the item's .Selected property, but the items list jumps up and down at runtime. Is there an equivalent to .DisableControls for the CGDevTools components, or is there another way to accomplish this without the checkboxlist updating until I've set all of the items.Selected property?

Code: Select all
procedure TframeEditSecurityProfile.SetSecurityProfileCode;
var
  i: Integer;
begin
  for i := 0 to Self.checkListCaseFileOptions.Items.Count - 1 do
    Self.checkListCaseFileOptions.Items[i].Selected := Self.checkListCaseFileOptions.Items[i].Value = 'Y';
end;


Thanks,
Scott

UPDATE: I found TIWCGJQCheckBoxList.Enable and .Disable. :)

UPDATE 2: Although I found the .Enable and .Disable properties of the control and the check box list no longer jumps around during the process (above), when I uncheck and check various items in the list and click a button to determine which items are selected, the items that I removed the check still have .Selected = True. At the same time, the control header correctly shows the number of selected items.

Hmmm...

Re: TIWCGJQCheckBoxList - programmatically setting item.Sele

PostPosted: 05 Sep 2014 17:33
by ScottWGast
OK...nevermind about the last "UPDATE" to my previous post... apparently I have not had enough coffee this morning! :)

Everything is fine... nothing to see here... move along.

Scott