1
Vote

Correct code for RC build of WCF RIA Services

description

I'm running VS2010 RTM w/WCF RIA Services V1.0 for VS2010 and Silverlight V4.
 
What I found was that the CategoryDomainDataSource.HasChanges = true which causes CanLoad to be false.
 
Changed the code to:
 
 
 
private void CancelButtonClick(object sender, RoutedEventArgs e)
{
  if (CategoryDomainDataSource.HasChanges)
  {
    CategoryDomainDataSource.RejectChanges();
  }
  CategoryDomainDataSource.Load();
}
 
 
 
Now it works. Is there a better way to handle this? thanks!

comments