CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

TIWCGJQCheckBoxList - programmatically setting item.Selected

by ScottWGast » 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?

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...
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by ScottWGast » 05 Sep 2014 17:33

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
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02


Return to JQCheckBoxList

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.