TWebListControl : problem when using begin/endupdate and clear

There is a problem with TWebListControl, (unless I'm incorrectly using BeginUpdate/EndUpdate) :

if I call Items.clear within a BeginUpdate / EndUpdate block it doesn't refresh after EndUpdate, (but adding an item does)
and the next calls to clear are not refreshed anymore until I add a new item.

this doesn't work :

  weblistcontrol1.BeginUpdate;
  weblistcontrol1.Items.Clear;
  weblistcontrol1.EndUpdate;

this works :

  weblistcontrol1.BeginUpdate;
  weblistcontrol1.Items.Add.Text := 'new item added';
  weblistcontrol1.EndUpdate;

this also works :

  weblistcontrol1.BeginUpdate;
  weblistcontrol1.Items.Clear;
  weblistcontrol1.Items.Add.Text := 'new item added';
  weblistcontrol1.EndUpdate;

this is working fine :

  weblistcontrol1.Items.Clear;

but, if i'm calling this :

  weblistcontrol1.BeginUpdate;
  weblistcontrol1.Items.Clear;
  weblistcontrol1.EndUpdate;

then this doesn't work anymore :

  weblistcontrol1.Items.Clear;

but this still works :

  weblistcontrol1.Items.Add.Text := 'new item ';

Thank you for notifying.
We are currently investigating this issue and will report back a soon as possible.

1 Like

We traced & solved this issue. Next update will address this.