This is a migrated thread and some comments may be shown as answers.

WCF RIA Load Children

3 Answers 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 06 Jul 2010, 03:35 AM
Using Northwind database one of the examples shows loading the Customer table using WCF Ria Services..  How can that program be modified to show the customer orders in the same RadGridView.  Also, I only want to retrieve and show the orders for the selected customer. 

Thanks
Rich

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Jul 2010, 06:23 AM
Hi,

You cannot have both Orders for every Customer and Orders only for selected Customer and all these in the same grid. Can you post more info about your scenario? Do you need master/details with two grids or hierarchical grid?

 This blog post may help you in your case.

Sincerely yours,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Richard Harrigan
Top achievements
Rank 1
answered on 07 Jul 2010, 08:04 PM
Hi,

That example helped a lot.  Staying with that example I wanted to try out binding a column dynamically.  I commented out the Country column in the xaml and tried to add programatically. It failed with a Invalid Binding Path exception.  If I omit the DataMemberBinding the Country column shows up but of course no data.

Thanks
Rich

public

 

 

MainPage()

 

{

    InitializeComponent();

    DataContext =

 

new MyDataContext();

 

 

 

    GridViewDataColumn gvdc = new GridViewDataColumn();

 

    gvdc.Header =

 

"Country";

 

    RadGridView1.Columns.Add(gvdc);

    gvdc.DataMemberBinding =

 

new System.Windows.Data.Binding("{Binding Country}");

 

}

0
Vlad
Telerik team
answered on 08 Jul 2010, 08:12 AM
Hello,

 The correct binding should be:

new System.Windows.Data.Binding("Country")

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Richard Harrigan
Top achievements
Rank 1
Share this question
or