This question is locked. New answers and comments are not allowed.
Hello,
I have a RadGridView bound to a VirtualQueryableCollectionView and the grid is sorted descending by a DateTime column. Given a load size of 30 rows, when a user A has the first 30 rows loaded, and subsequently a user B inserts a new row at the top, effectively pushing all other rows down, and following that user A scrolls down resulting in the next 30 rows being loaded, then the entity previously at row index 29 will be loaded again and displayed again at row index 30, while it is also still displayed at row index 29.
Since I am using WCF RIA Services the entity set will only contain the entity in memory once, but the RadGridView displays it twice. I want to prevent that from happening. Could Telerik provide guidance on the recommended way to achieve this?
I have tried to detect when my load operation completes but before I load the entities into the VirtualQueryableCollectionView whether any of the returned entities has already been loaded into the VirtualQueryableCollectionView using the IndexOf method and if so call the Refresh method on the VirtualQueryableCollectionView, but this quickly becomes a mess with the view continually being refreshed.
I also want the Refresh to avoid loading the rows 30 to 59 again that allowed me to detect the issue, as I know those 30 rows are ok: it's all other rows that need to be refreshed. I say 'refresh all other rows' as that is what is required when user B insert a row at the top that effectiely pushes all other rows down, as in my example. But another example is user B makes an update of the DateTime column at say row index 10, moving that entity to say row index 40, in which case for user A only the rows from 10 to 29 need to be refreshed.
Any help with this would be much appreciated.
cheers
Remco
I have a RadGridView bound to a VirtualQueryableCollectionView and the grid is sorted descending by a DateTime column. Given a load size of 30 rows, when a user A has the first 30 rows loaded, and subsequently a user B inserts a new row at the top, effectively pushing all other rows down, and following that user A scrolls down resulting in the next 30 rows being loaded, then the entity previously at row index 29 will be loaded again and displayed again at row index 30, while it is also still displayed at row index 29.
Since I am using WCF RIA Services the entity set will only contain the entity in memory once, but the RadGridView displays it twice. I want to prevent that from happening. Could Telerik provide guidance on the recommended way to achieve this?
I have tried to detect when my load operation completes but before I load the entities into the VirtualQueryableCollectionView whether any of the returned entities has already been loaded into the VirtualQueryableCollectionView using the IndexOf method and if so call the Refresh method on the VirtualQueryableCollectionView, but this quickly becomes a mess with the view continually being refreshed.
I also want the Refresh to avoid loading the rows 30 to 59 again that allowed me to detect the issue, as I know those 30 rows are ok: it's all other rows that need to be refreshed. I say 'refresh all other rows' as that is what is required when user B insert a row at the top that effectiely pushes all other rows down, as in my example. But another example is user B makes an update of the DateTime column at say row index 10, moving that entity to say row index 40, in which case for user A only the rows from 10 to 29 need to be refreshed.
Any help with this would be much appreciated.
cheers
Remco