iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Are there any example of how to use Silverlight enabled WCF Service with an ADO.Net Entity Data Model to connect to the Grid Presenter? Also can the Grid Presenter be used in a unbound mode similar to the way that a standard DataGrid similar to below?
dg.Columns.Clear();
dg.Columns.Add(textColumn0);
dg.Columns.Add(textColumn1);
dg.Columns.Add(textColumn2);
dg.Columns.Add(textColumn3);
dg.ItemsSource = e.Result;
We have a detailed walkthrough regarding binding WCF DataSource control to Presenter in our Presenter documentation on the article titled "Walkthrough: Performing CRUD operation using WCF Data Source Control".
Basically the GetCustomers() function in the sample will need DataSourceSelectArguments parameter and you will need to create a WCF DataSource control that will connect to the WCF service. The walkthrough article have a detailed steps and explanation regarding both topic.
We already have some sample for Bound and Unbound presenter in the provide Presenter sample, C# Samples (Visual Studio 2008 Solution with .NET RIA Services) and C# Samples (Visual Studio 2008 Solution). Our presenter could be bound to Silverlight WCF service using Intersoft WCF DataSource. Our presenter also support unbound mode.This feature could be viewed in more detail in our provided sample. If you are interested in the GridPresenter, all GridPresenter sample will be under Samples/GridPresenter folder.
Glenn;
Thank you. I did see the unbound example using the XML data source, but when attempt it using something like the code below where dg is my GridPresenter. I get a an empty GridPresenter. I see rows, but there are no columns of data.
I could not find an example using Silverlight Enabled WCF Service only the normal WCF Service.
Thanks again,
Al
{
PSServiceRef.PSServiceClient ws = new PSServiceRef.PSServiceClient();ws.GetProjectsCompleted += new EventHandler<PSServiceRef.GetProjectsCompletedEventArgs>(LoadTableCompleted); ws.GetProjectsAsync(); }
ws.GetProjectsCompleted += new EventHandler<PSServiceRef.GetProjectsCompletedEventArgs>(LoadTableCompleted); ws.GetProjectsAsync(); }
ws.GetProjectsAsync();
}
ws.GetProjectsCompleted += new EventHandler<PSServiceRef.GetProjectsCompletedEventArgs>(LoadTableCompleted);ws.GetProjectsAsync();}
This is a follow with additional information.
I have a Silverlight project which uses the Silverlight enabled WCF service, and an ADO.Net Entity Data Model. I am able to bind data to charts and the standard DatGrid using the above services. When I attempt to connect this data with Astoria or WCF DataSource, or use the unbound mode I get a blank GridPresenter. I can get data into the GridPresenter only if I use the unbound mode, and the data is in an xml file.
Below are the names of the various data objects. Based on the names below how would I create either an Astoria or WCF Data Source, and which is the correct one given my configuration.
PSService name of my Silverlight enabled WCF Service.
PSModel is the name of my Entity Model.
PSEnity is the name stored in the Web.Config for my enity model.
PSServiceRef is the name of my Service Reference in the Silverlight project.
I have attached the ServiceReference.ClientConfig and the PSSevice.svc.cs files
Thanks,
I'm having difficulty recreating the scenario in our environment. Do you mind sending us a sample project so we could recreate the scenario and replicate the issue easily?
Here is a simple Silverlight 3 project with a DataGrid. The DataGrid is successfully populated using the Silverlight enabled WCF Service. I am trying to figure out how to replicate this simple DataGrid using Grid Presenter.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname