This question is locked. New answers and comments are not allowed.
I'm pretty sure I am doing something wrong here but can't figure it out.
My situation ;
I have a RadGridView bound to a PagedCollectionView (DataList).
I also have a datapager that is connected to the grid via its Items property.
On initial load of the page, everything is fine. I have 37 rows of data, I have 3 pages appearing in the pager.
Now, the nature of the data is such that it has some computed fields that are generated by a stored procedure after certain updates. So, after a save operation is performed, I make a call to the DomainService using a LoadBehaviour of RefreshCurrent basically to refresh the cached entity set on the client (as outlined here). The problem I am having is when that refresh completes, I recreate the PagedCollectionView in my view model which causes the grid to update it's itemssource via its binding. The page however seems to disconnect or reset. Basically I end up after the save and refresh with one page and all 37 records displayed in the grid. Paging appears to be turned off.
I hope this is clear and someone knows what I am doing wrong.
Thanks.
Alex.
My situation ;
I have a RadGridView bound to a PagedCollectionView (DataList).
<telerik:RadGridView x:Name="myGrid" ItemsSource="{Binding DataList}" ColumnWidth="Auto" VerticalAlignment="Stretch" AutoGenerateColumns="False" HorizontalAlignment="Stretch" CanUserFreezeColumns="False" RowStyleSelector="{StaticResource selector}" >I also have a datapager that is connected to the grid via its Items property.
<telerik:RadDataPager Grid.Row="1" x:Name="radDataPager" PageSize="15" Source="{Binding Path=Items, ElementName=myGrid}" DisplayMode="All" AutoEllipsisMode="Both" NumericButtonCount="10" IsTotalItemCountFixed="True"/>On initial load of the page, everything is fine. I have 37 rows of data, I have 3 pages appearing in the pager.
Now, the nature of the data is such that it has some computed fields that are generated by a stored procedure after certain updates. So, after a save operation is performed, I make a call to the DomainService using a LoadBehaviour of RefreshCurrent basically to refresh the cached entity set on the client (as outlined here). The problem I am having is when that refresh completes, I recreate the PagedCollectionView in my view model which causes the grid to update it's itemssource via its binding. The page however seems to disconnect or reset. Basically I end up after the save and refresh with one page and all 37 records displayed in the grid. Paging appears to be turned off.
I hope this is clear and someone knows what I am doing wrong.
Thanks.
Alex.