This example demonstrates how to populate RadTreeView from WCF Web Service. You
need to point to an existing web service and method:
<telerik:RadTreeView runat="server" ID="RadTreeView2"
DataSourceID="LinqDataSource1"
DataTextField="Text" DataValueField="id" >
<WebServiceSettings Path="TreeViewWcfService.svc" Method="LoadData" />
<DataBindings>
<telerik:RadTreeNodeBinding Depth="0" ExpandMode="WebService" />
</DataBindings>
</telerik:RadTreeView>
The root nodes are populated from a EntityFramework datasource:
Check the source code of the web service for the implementation of the LoadData
method.
Expand a node to populate its children on demand.