WCF WebService GetData(RadTreeNodeData parentNode always NULL

4 posts, 0 answers
  1. Richard
    Richard avatar
    27 posts
    Member since:
    Sep 2008

    Posted 14 Sep 2009 Link to this post

    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 15 Sep 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Joey
    Joey avatar
    32 posts
    Member since:
    Feb 2008

    Posted 01 Mar 2010 Link to this post

    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)
  5. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 04 Mar 2010 Link to this post

    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.
Back to Top