TIWCGJQCheckBoxList - programmatically setting item.Selected
Posted: 05 Sep 2014 15:58
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?
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...
- 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...