S
shapper
Hello,
I created a ListView with a DataPager associated with it.
The ListView renders as a table but I suppose it is irrelevant for the
problem I describe here.
I moved the ListView to a page, let's say 10. Then I deleted all
elements of this page.
The normal behavior would be:
1. When the last element of a page is deleted move to previous page.
2. When the last element of the first page is deleted show
EmptyDataTemplate.
The record deleting is handled in ListView ItemDeleting event.
What happens is when the last record of a page is deleted the ListView
disappears.
If I refresh the page I get the following error:
Sequence contains no elements
How to solve this?
Thanks,
Miguel
I created a ListView with a DataPager associated with it.
The ListView renders as a table but I suppose it is irrelevant for the
problem I describe here.
I moved the ListView to a page, let's say 10. Then I deleted all
elements of this page.
The normal behavior would be:
1. When the last element of a page is deleted move to previous page.
2. When the last element of the first page is deleted show
EmptyDataTemplate.
The record deleting is handled in ListView ItemDeleting event.
What happens is when the last record of a page is deleted the ListView
disappears.
If I refresh the page I get the following error:
Sequence contains no elements
How to solve this?
Thanks,
Miguel