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

WCF WebService GetData(RadTreeNodeData parentNode always NULL

3 Answers 47 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 2
Richard asked on 14 Sep 2009, 06:03 PM
Hi,
I'm using the load-on-demand WCF WebService according to the example for this in the documentation in
http://www.telerik.com/help/aspnet-ajax/treeview-wcf-load-on-demand.html 

and

ms-help://MS.VSCC.v90/MS.VSIPCC.v90/telerik.aspnetajax.radcontrols.2009.Q2/telerik.aspnetajax.radtreeview.2009.Q2/data-binding-load-on-demand-webservice.html

It works fine, except for the fact that, no matter how many new levels I add to the tree, the RadTreeNodeData parentNode paramenter in the WCF Signature (again, just as it is in the example):
    [OperationContract]
    public RadTreeNodeData[] GetData(RadTreeNodeData parentNode, IDictionary<string, object> context)
    {...}

is always NULL.

What to I need to do to get this parameter set?

Thanks!
Richard

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 15 Sep 2009, 03:24 PM
Hello Richard,

Please set the name of the first argument to be "node" instead of "parentNode". This is important as RadTreeView always sends "node" from the client-side when calling the WCF service. I have attached a working demo showing how to use the expanded node.

Regards,
Albert,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Joey
Top achievements
Rank 1
answered on 01 Mar 2010, 10:18 PM
I just ran into this same issue. Your suggestion worked, however the documentation on your website and in the compiled help is still incorrect. It is defined as:

public RadTreeNodeData[] GetData(RadTreeNodeData parentNode, IDictionary<string, object> context)
0
Dimitar Milushev
Telerik team
answered on 04 Mar 2010, 03:59 PM
Hi Joey,

Thank you, we will make sure to update our documentation to reflect this.

All the best,
Dimitar Milushev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TreeView
Asked by
Richard
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Joey
Top achievements
Rank 1
Dimitar Milushev
Telerik team
Share this question
or