Hello,
I'm trying to implement an imagelist so every time a user upload an image I update the image list.
After the image is uploaded the following code runs but the shown image is always the first I uploaded even though the "FileName" is different:
ImagesPanelList.Items.BeginUpdate;
try
with ImagesPanelList.Items.Add do
begin
PictureOptions.Picture.Url := FileName;
Caption := FileName;
end;
finally
ImagesPanelList.Items.EndUpdate;
end;
ImagesPanelList.AjaxReRender();
What I'm doing wrong?
Is the use of PanelList the best way to implement an image list?
Thank you,
Davide