domaindatasource

ObjectDataSource vs new DomainDataSource

Hello, I don't see difference between ObjectDataSource and new DomainDataSource (http://blogs.microsoft.co.il/blogs/bursteg/archive/2009/04/11/using-domaindatasource-in-asp-net.aspx). I need create 4 methods, which is then used in both cases. What I main difference? ...

Databinding to a DomainDataSource Query Parameter

I need to bind a username to a DomainDataSource QueryParameter. My understanding is that the following does not work: <RiaControls:DomainDataSource x:Name="MyData" LoadSize="20" QueryName="GetStockByCompany" AutoLoad="True"> <RiaControls:DomainDataSource.DomainContext> <ds:InventoryDomainContext /> </RiaControls:DomainDataSource.D...

Binding to DomainDataSource with DataGrid in Silverlight 3

Using markup I can't get data to show in the grid: <riacontrols:DomainDataSource x:Name="EstimatesData" QueryName="GetUserEstimates" > <riacontrols:DomainDataSource.DataContext> <ds:MyDomainContext /> </riacontrols:DomainDataSource.DataContext> </riacontrols:DomainDataSource> <datagrid:DataGrid x:Name="EstimatesGrid" ...

Ria Services: Synchronous DomainDataSource.SubmitChanges()

Hey guys I'm trying to upload images (byte arrays) from the client to a database - this works like a charm. The thing is, I'd like to show the progress of this operation to the user, but the DomainDataSource object doesn't provide any sort of progress-event. If I call SubmitChanges for each entity it somehow starts to overlap and thin...

SIlverlight 4, FilterDescriptor and GUID as FilterOperator

Hey guys, as seen in this post, GUIDs are not supported by the FilterDescriptorts FilterOperator. Has anyone encountered this problem? Is there a workaround? Because, well it pretty much sucks (no filtering by foreign keys and so on... which is quite common). ...

Using Silverlight RIA Services DomainDataSource to query by user

So I am using the SL4 Business Template and the SQL Membership API. I created a user and I created a custom table that ties to that user. So I want to have a datagrid that show the item for the CURRENT (WebContext.Current.User) user. Why is the GUID for the user in WebContext.Current.User??? I need that to join to the 'Items' table. H...

Silverlight DomainDataSource in code-behind not loading all rows

I have a domain data source in Silverlight 4. I'm setting it up in the code behind, and I'm also using a RadDataPager and RadGridView. DomainDataSource dds = new DomainDataSource(); dds.QueryName = "MyQueryName"; dds.DomainContext = ctx; dds.LoadSize = 10; dds.PageSize = 10; dds.AutoLoad = true; radDataPager1.PageSize = 10; radDataPa...

silverlight 4 RIA update item in domaindatasource only updates after refresh

Hi there, I have created a silverlight app and have a listbox that is populated using a domaindatasource. I have created a button that takes the selected list item and updates a field (in my case its called IsDeleted) my domain service looks like this public IQueryable<Employee> GetEmployees(int storeID) { return this.Obje...

Inserting an entity and dependent entities using RIA Services

Hello everybody :-) I got a question about inserting an entity with dependent entities using RIA Services (With Silverlight 4.0). Let's say I have an Entity in my (sql) database called "Beer" and one called "Supplier", with a relationship: Beer 1 - n Supplier. There are multiple suppliers for one kind of beer. Now there's the followin...