With the RIA Services July 2009 Preview release, we heard significant feedback about the DomainDataSource error handling story. The biggest problem was when errors occurred during Load() or SubmitChanges(), server-side errors would be silently swallowed unless you opted into the LoadError, LoadedData, and SubmittedChanges events, and explicitly checked for errors. ...
[Read More]
Building ContosoSales - The RIA Services Keynote Demo
During Scott Guthrie’s keynote at PDC09 (starting around 1:28:00), Scott Hanselman presented a demo that highlighted Visual Studio 2010, Silverlight 4, RIA Services, and lots of great new tooling that ties all of these products together. I wanted to show you how you can build the same application using installations that...
[Read More]
DomainDataSource DataPager PageSize Pitfall
During the PDC release milestone of RIA Services, we discovered an error from DomainDataSource when using AutoLoad="True" and when using a DataPager bound to the DomainDataSource’s Data property. We found that when the PageSize property is specified on the DataPager and not on the the DomainDataSource itself, an exception would...
[Read More]
DomainDataSourceView API (DomainDataSource.DataView)
DomainDataSource has two properties for getting the data out of it: Data and DataView. The Data property is what’s intended for exposure in Binding scenarios, for instance binding a DataGrid to the DomainDataSource. This property is typed very simply as an IEnumerable. The DataView property however is intended to be...
[Read More]
(Not) Doing Back Flips with DomainDataSource [SubmitChanges sends user to first page]
When changes are successfully submitted and you have paging enabled, it’s quite possible that some of the entities that have been edited now belong to a different page. Say for instance you are viewing employees ordered by last name, and you edit one of the employees to change their last...
[Read More]