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

[Solved] RadGridView - Master/Detail - WCF Data Service

1 Answer 117 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nuno
Top achievements
Rank 1
Nuno asked on 01 Nov 2011, 05:25 PM
Hi,

I'm trying to have a Master/Detail association on a RadGridView, but i'm having problems in getting the detail values when the user expands the row.

The data comes from two tables ( [Artigo].ID == [ArtigoArmazem].ArtigoID) on an ADO.NET Entity Data Model, and i'm using a WCF Data Service ( referenced as a service reference on the client).

I'm filling the first radgridview with

        private void BeginRequest()
        {
            DataServiceQuery<Artigo> query = dbContext.CreateQuery<Artigo>("Artigo");
            query.BeginExecute(RequestCompleted, query);
        }

        private void RequestCompleted(IAsyncResult asyncResult)
        {
            DataServiceQuery<Artigo> query = asyncResult.AsyncState as DataServiceQuery<Artigo>;
            
            var artigos = query.EndExecute(asyncResult).ToList();
            this.radGridView.ItemsSource = artigos;
        }


I've read some of your examples but i'm not being able to  show the data from the second table on RowDetails when user selects a row.


Can you please help?

Thanks

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Nov 2011, 07:07 AM
Hello Nuno,

I would recommend you to run through the following blog posts:

1. Master-Details with RadGridView for Silverlight 4, WCF RIA Services RC2 and Entity Framework 4.0
2. Asynchronous Master-Details with RadGridView for Silverlight and WCF RIA Services

Let us know if you need any further assistance.
 

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Nuno
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or