This question is locked. New answers and comments are not allowed.
I have a QueryableDomainServiceCollectionView in my ViewModel:
This is set up in the constructor:
And is bound to a radGridView and radDataPager:
When I check the checkbox in the gridview, the data pager gets enable and never gets re-enabled. Why does this happen? Does it matter that the update statement in the WCF RIA Service doesn't actually do anything? I only intend on working with this on the client side.
private QueryableDomainServiceCollectionView<HR.CurrentAssociateSelected> _currentAssociateSelectedQDSCV; public QueryableDomainServiceCollectionView<HR.CurrentAssociateSelected> currentAssociateSelectedQDSCV { get { return _currentAssociateSelectedQDSCV; } set { if (currentAssociateSelectedQDSCV == value) return; _currentAssociateSelectedQDSCV = value; OnPropertyChanged("currentAssociateSelectedQDSCV"); } } This is set up in the constructor:
EntityQuery<HR.CurrentAssociateSelected> getCurrentAssociateSelected = ctx2.GetCurrentAssociateSelectedIncludeUserQuery(null, null, 1).OrderBy(p => p.currentAssociate.currentAssociate.firstName).OrderBy(p => p.currentAssociate.currentAssociate.lastName); currentAssociateSelectedQDSCV = new QueryableDomainServiceCollectionView<HR.CurrentAssociateSelected>(ctx2, getCurrentAssociateSelected); currentAssociateSelectedQDSCV.PageSize = 20; currentAssociateSelectedQDSCV.AutoLoad = true; And is bound to a radGridView and radDataPager:
<telerik:RadGridView AutoGenerateColumns="False" Height="300" ItemsSource="{Binding currentAssociateSelectedQDSCV, Mode=TwoWay}" Name="editUserSubscrDataGrid" SelectionMode="Single"> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn x:Name="editUserLoginNameColumn" DataMemberBinding="{Binding Path=currentAssociate.currentUser.loginName}" Header="Login Name" ShowDistinctFilters="False" IsReadOnly="True" /> <telerik:GridViewDataColumn x:Name="editUserLastNameColumn" DataMemberBinding="{Binding Path=currentAssociate.currentAssociate.lastName}" Header="Last Name" IsReadOnly="True" /> <telerik:GridViewDataColumn x:Name="editUserFirstNameColumn" DataMemberBinding="{Binding Path=currentAssociate.currentAssociate.firstName}" Header="First Name" IsReadOnly="True" /> <telerik:GridViewDataColumn x:Name="editUserTitleColumn" DataMemberBinding="{Binding Path=currentAssociate.currentAssociateExtendedData.title}" Header="Title" IsReadOnly="True" /> <telerik:GridViewDataColumn x:Name="editUserHomeStoreCodeColumn" DataMemberBinding="{Binding Path=currentAssociate.homeStore.code}" Header="Store CD" IsReadOnly="True" /> <telerik:GridViewDataColumn x:Name="editUserHomeStoreNameColumn" DataMemberBinding="{Binding Path=currentAssociate.homeStore.name}" Header="Store Name" IsReadOnly="True" /> <telerik:GridViewCheckBoxColumn x:Name="editUserSelected" DataMemberBinding="{Binding Path=isSelected, Mode=TwoWay}" AutoSelectOnEdit="True" EditTriggers="CellClick"> <telerik:GridViewCheckBoxColumn.Header> <Grid> <CheckBox x:Name="editUserSelectAllChk" Content="Select All" Foreground="White" Click="editUserSelectAllChk_Click" /> </Grid> </telerik:GridViewCheckBoxColumn.Header> </telerik:GridViewCheckBoxColumn> </telerik:RadGridView.Columns> </telerik:RadGridView> <telerik:RadDataPager x:Name="editUserSubscrDataPager" DisplayMode="All" Source="{Binding currentAssociateSelectedQDSCV, Mode=TwoWay}" IsTotalItemCountFixed="True" PageSize="20" /> When I check the checkbox in the gridview, the data pager gets enable and never gets re-enabled. Why does this happen? Does it matter that the update statement in the WCF RIA Service doesn't actually do anything? I only intend on working with this on the client side.
