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

[Solved] WCF support for TreeView load on demand

2 Answers 119 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
relper
Top achievements
Rank 1
relper asked on 05 Feb 2008, 10:40 PM
Hi,

Can I use a WCF service to load nodes on demand on the TreeView? I modified the sample from "Load on Demand > Web Service" to point to a WCF service. The service works fine but when it's called by the TreeView i get an error "The server method 'GetTreeViewCategories' failed". Is there a modified example using WCF?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 06 Feb 2008, 04:42 PM
Hi,

We have prepared a KB article on this topic that you can find here. Basically, you have to modify your WCF web service, so it uses JSON in order to be compatible with AJAX. The KB contains a working sample. There is also a link to an excellent article by Dino Esposito that explains the issues in detail.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
relper
Top achievements
Rank 1
answered on 06 Feb 2008, 04:51 PM
That's exactly what I needed! Thanks for the quick response!
Tags
TreeView
Asked by
relper
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
relper
Top achievements
Rank 1
Share this question
or