Hi,
i am new and search a way do refresh the List.
When the form creates all items in the list are at the screen.
If i delete items at runtime and insert new items to list i
only see the old screen. What is the right way to do it?
thanks
Gerhard
How exactly do you delete the items? From where? Is this from some async event?
First i use TIWIPhoneList.items.clear
then i try with
for i:=0 to TIWIPhoneList.items.count-1 do
TIWIPhoneList.AsyncItemRemove(i);
thats ok, the list is empty, but if i insert new
items in the list they are not visible.
When adding items to the IWiPhoneList asynchronously you also have to call AsyncItemsAdd afterwards.
Example:
for I := 0 to 10 - 1 do
begin
with TIWIPhoneList1.Items.Add do
begin
Caption := 'New = ' + IntToStr(I);
end;
end;
TIWIPhoneList1.AsyncItemsAdd;
ok thats it!
Thank you!