DataList won't reload

I have a DataList like the one in the panel example (
When I update it after removing the last item in the DataList it shows up empty. If I there are more than one item left I see the pages and can choose one of them, but if it was the second to last item the DataList is blank. If I reload the page using F5 it shows the item(s) that are left.

Try to call Reload() method of the DataList.

It didn't make a difference unfortunately.
It 's like if you remove the last item then it it tries to show it anyway. Because if I remove any other than the last object it works.

Please call LastPage() or FirstPage() instead Reload(). We will do our best to handle it internally somehow.

1 Like

I just found FirstPage and LastPag and it works!

This is an old thread, but I am still experiencing this issue.
Reload(), FirstPage(), and LastPage() do not work.

I have discovered, however, that disallowing Virtualization (i.e. AllowVirtualization=false) results in the desired functionality.

It's fine for my purposes, but if I NEEDED virtualization it would not be acceptable.

I mean the dropdowns don't look the same. The browser is Chrome 96..

If you want to use virtualization (AllowVirtualization=true), you can reset the data before calling Reload.


dataList.Data = null;
await dataList.Reload();
1 Like