I've got a WCF Data Service which is correctly publishing data (checked in the browser), yet when I hook it up to a RadTreeView or a RadMenu, nothing is rendered in the Browser...
My markup looks like this (generated by smart tags):
The output in the browser when directed to http://localhost:8989/ODService.svc/Things looks like this:
and finally, the source from the rendered web page where the control should be, looks like this:
Is there something I'm doing wrong?
I can post up the code from the data classes or the context, but the fact that the service is outputting into the browser (as above) without problems, allowing me to correctly query it, would suggest that the problem isn't in the service itself.
My markup looks like this (generated by smart tags):
<
telerik:RadODataDataSource
ID
=
"RadODataSource1"
runat
=
"server"
>
<
Transport
>
<
Read
Url
=
"http://localhost:8989/ODService.svc/"
DataType
=
"XML"
/>
</
Transport
>
<
Schema
>
<
telerik:DataModel
ModelID
=
"Thing"
Set
=
"Things"
>
<
telerik:DataModelField
FieldName
=
"Id"
/>
<
telerik:DataModelField
FieldName
=
"Name"
/>
<
telerik:DataModelField
FieldName
=
"Value"
/>
</
telerik:DataModel
>
</
Schema
>
</
telerik:RadODataDataSource
>
<
telerik:RadTreeView
ID
=
"RadTreeView1"
Runat
=
"server"
DataFieldID
=
"Id"
DataModelID
=
"Thing"
ODataDataSourceID
=
"RadODataSource1"
></
telerik:RadTreeView
>
The output in the browser when directed to http://localhost:8989/ODService.svc/Things looks like this:
<?
xml
version
=
"1.0"
encoding
=
"iso-8859-1"
standalone
=
"yes"
?>
<
feed
xml:base
=
"http://localhost:8989/ODService.svc/"
xmlns:d
=
"http://schemas.microsoft.com/ado/2007/08/dataservices"
xmlns:m
=
"http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns
=
"http://www.w3.org/2005/Atom"
>
<
title
type
=
"text"
>Things</
title
>
<
id
>http://localhost:8989/ODService.svc/Things</
id
>
<
updated
>2012-07-03T10:27:17Z</
updated
>
<
link
rel
=
"self"
title
=
"Things"
href
=
"Things"
/>
<
entry
>
<
id
>http://localhost:8989/ODService.svc/Things(0)</
id
>
<
title
type
=
"text"
></
title
>
<
updated
>2012-07-03T10:27:17Z</
updated
>
<
author
>
<
name
/>
</
author
>
<
link
rel
=
"edit"
title
=
"Thing"
href
=
"Things(0)"
/>
<
category
term
=
"RadApp.Data.Model.Thing"
scheme
=
"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
/>
<
content
type
=
"application/xml"
>
<
m:properties
>
<
d:Id
m:type
=
"Edm.Int32"
>0</
d:Id
>
<
d:Name
>Thing0</
d:Name
>
<
d:Value
>e55187e0-1439-4ac8-984b-504236caf274</
d:Value
>
</
m:properties
>
</
content
>
</
entry
>
<
entry
>
<
id
>http://localhost:8989/ODService.svc/Things(1)</
id
>
<
title
type
=
"text"
></
title
>
<
updated
>2012-07-03T10:27:17Z</
updated
>
<
author
>
<
name
/>
</
author
>
<
link
rel
=
"edit"
title
=
"Thing"
href
=
"Things(1)"
/>
<
category
term
=
"RadApp.Data.Model.Thing"
scheme
=
"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
/>
<
content
type
=
"application/xml"
>
<
m:properties
>
<
d:Id
m:type
=
"Edm.Int32"
>1</
d:Id
>
<
d:Name
>Thing1</
d:Name
>
<
d:Value
>cfb491c8-9a07-4393-a539-5d7078cc9ded</
d:Value
>
</
m:properties
>
</
content
>
</
entry
>
<
entry
>
<
id
>http://localhost:8989/ODService.svc/Things(2)</
id
>
<
title
type
=
"text"
></
title
>
<
updated
>2012-07-03T10:27:17Z</
updated
>
<
author
>
<
name
/>
</
author
>
<
link
rel
=
"edit"
title
=
"Thing"
href
=
"Things(2)"
/>
<
category
term
=
"RadApp.Data.Model.Thing"
scheme
=
"http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"
/>
<
content
type
=
"application/xml"
>
<
m:properties
>
<
d:Id
m:type
=
"Edm.Int32"
>2</
d:Id
>
<
d:Name
>Thing2</
d:Name
>
<
d:Value
>7daecdaa-4a69-4f61-87f6-55eaca455ccc</
d:Value
>
</
m:properties
>
</
content
>
</
entry
>
</
feed
>
and finally, the source from the rendered web page where the control should be, looks like this:
<
div
id
=
"RadTreeView1"
class
=
"RadTreeView RadTreeView_Clear"
>
<
input
id
=
"RadTreeView1_ClientState"
name
=
"RadTreeView1_ClientState"
type
=
"hidden"
autocomplete
=
"off"
value
=
"{"expandedNodes":[],"collapsedNodes":[],"logEntries":[],"selectedNodes":[],"checkedNodes":[],"scrollPosition":0}"
>
</
div
>
Is there something I'm doing wrong?
I can post up the code from the data classes or the context, but the fact that the service is outputting into the browser (as above) without problems, allowing me to correctly query it, would suggest that the problem isn't in the service itself.