Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6628147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:05:49+00:00 2026-05-25T22:05:49+00:00

I have an OData WCF ADO.NET service created with Entity Framework using protocol version

  • 0

I have an OData WCF ADO.NET service created with Entity Framework using protocol version 2. The entity model looks like this:

Entity model

I now wish to consume this using a Telerik RadGrid. Here’s the markup so far:

<telerik:RadGrid ID="radGrid" runat="server" AutoGenerateColumns="false" Width="100%" Skin="Sitefinity">
    <ClientSettings>
        <DataBinding Location="http://aadev:8081/measuredata.svc">
            <DataService TableName="MeasureTopics"></DataService>
        </DataBinding>
    </ClientSettings>
    <MasterTableView DataKeyNames="MeasureTopicGuid" GroupLoadMode="Client" Name="MeasureTopics">
        <Columns>
            <telerik:GridBoundColumn DataField="TopicName" />
        </Columns>
        <DetailTables>
            <telerik:GridTableView DataKeyNames="MeasureGuid" runat="server">
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="TopicID" MasterKeyField="MeasureTopicGuid" />
                </ParentTableRelation>
                <Columns>
                    <telerik:GridBoundColumn DataField="MeasureKeyCode" />
                    <telerik:GridBoundColumn DataField="MeasureName" />
                </Columns>
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
</telerik:RadGrid>

This shows measure topics and a right-arrow to expand into measure definitions, but clicking the arrow does nothing. At least part of the problem is that ParentTableRelation can’t work as “TopicID” doesn’t exist on the entity. (It’s not there because having “MeasureTopic” as a navigation property prevents EF from allowing it to also exist on the entity as a scalar.)

What I’d like to know is, as the relationship is coming through the OData feed as a link…

<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/MeasureTopic" type="application/atom+xml;type=entry" title="MeasureTopic" href="MeasureDefinitions(guid'96df6072-a8e4-e011-890d-000c29ba97e5')/MeasureTopic" /> 
<category term="HealthMeasuresModel.MeasureDefinition" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /> 
<content type="application/xml">
    <m:properties>
        <d:MeasureGuid m:type="Edm.Guid">96df6072-a8e4-e011-890d-000c29ba97e5</d:MeasureGuid> 
        <d:MeasureKeyCode>ABC-001</d:MeasureKeyCode> 
        <d:MeasureName>ABC Register</d:MeasureName> 
        <d:MeasureDescription>Test</d:MeasureDescription> 
    </m:properties>
</content>

…how do I configure RadGrid to understand it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:05:50+00:00Added an answer on May 25, 2026 at 10:05 pm

    Your markup is mostly correct, only GroupLoadMode should be HierarchyLoadMode instead. The former specifies loading of groups, the latter – of hierarchical detail tables.

    You also need some javascript, more specifically two RadGrid client events – OnHierarchyExpanding and OnCommand. The approach is demonstrated in this Telerik Blog post.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created an OData endpoint (using entity framework, WCF data service) and added a
I have created an OData/WCF service using Visual Studio 2010 on Windows XP SP3
I am using WCF Data Services over an ADO.NET Entity Data Model, and I
I have an OData Service setup using WCF Data Services (v2) that is hosted
What I'd like to have is regular WCF service calls responding on my root
I have created an Odata service that i use for my IPad application to
I really like OData (WCF Data Services). In past projects I have coded up
I am implementing a WCF Data service that implements the following method: http://debugmode.net/2010/06/13/introduction-to-wcf-data-service-and-odata/ I've
Is there any metadata versioning support in OData protocol and its WCF Data Services
I need to host a WCF Data service as part of a legacy ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.