Reported By: Etienne Mercier Reported On: 2/26/2021 For: Version 3.00 Build 1
# 4819Sorted TListBox Controls Not Refreshing Properly When List Items Updated Using a sorted listbox, I am facing a problem. The second line in the listbox is missing when the listbox is populated.
Comments and WorkaroundsThis was an issue with the list getting sorted *after* the control was told to update itself. The hot fix was to replace the TListStrings.HandleChanges method body in the WebLists unit with this new method body:
procedure TListStrings.HandleChanges;
begin
inherited HandleChanges;
FListControl.ItemsChanged;
end;
Alternately, one could just wrap the loading of the listbox strings with this:
ListBox1.Sorted:=False;
try
finally
ListBox1.Sorted:=True;
end;
ResolutionFixed Problem on 2/28/2021 in version 3.01 build 1
Products AffectedElevate Web Builder Elevate Web Builder Trial