A few details of my application:
In page1 I have a RadGridView that binds to UsersView:
The problem is that when I modify the domain context in another page and go back to page1 then GetAllowedUsersQuery is not called anymore.
Thank you!
- Silverlight, Ria Services
- I use an application-wide domain context even though I have multiple pages
- I use MVVM design pattern with QueryableDomainServiceCollectionView (QDSCV)
In page1 I have a RadGridView that binds to UsersView:
public
class
UsersManagementVM : INotifyPropertyChanged
{
static
UMContext _umCtx = DomainContexts.UserManagementContext;
class
UsersCollectionView : Telerik.Windows.Data.QueryableDomainServiceCollectionView<Users>
{
public
UsersCollectionView(DomainContext domainContext, EntityQuery<Users> entityQuery)
:
base
(domainContext, entityQuery)
{
AutoLoad =
true
;
}
};
public
Telerik.Windows.Data.QueryableDomainServiceCollectionView<Users> UsersView
{
get
{
return
vUI.Manager.FromCache<UsersCollectionView>(
delegate
{
var y =
new
UsersCollectionView(_umCtx, _umCtx.GetAllowedUsersQuery(CurrentUser.UserId));
}
}
}
}
The problem is that when I modify the domain context in another page and go back to page1 then GetAllowedUsersQuery is not called anymore.
Thank you!