WebServiceSettings example please.

7 posts, 0 answers
  1. Mark Thomas
    Mark Thomas avatar
    33 posts
    Member since:
    May 2007

    Posted 10 Jan 2008 Link to this post

    Hi,

    I have been using the RadTreeView for about 9 months now and am really happy with it. Recently I upgraded my project to Prometheus and noticed the WebServiceSettings, which seems exactly what I was looking for.

    But there is no help in the online help for TreeView and a search for WebServiceSettings on telerik gives no results.

    Is there any chance of getting a nice little example with populating nodes on load and adding nodes on Expand?

    Regards,
    Mark Thomas.
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 10 Jan 2008 Link to this post

    Hi Mark Thomas,

    I'm sorry for the glitches we still have in our documentation. We are constantly improving it. Currently you can find some information in the API Reference section of the RadControls "Prometheus" help: WebServiceSettings property. A fully functional example is available in the Quick Start examples shipped with the package and online.

    I hope this helps.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mark Thomas
    Mark Thomas avatar
    33 posts
    Member since:
    May 2007

    Posted 11 Jan 2008 Link to this post

    Hi Erjan Gavalji,

    Thanks for the pointers. I tried playing around with the code from the online demo, but I get a timeout from the webservice when it tries to connect to the DB. So I replaced this in my own example with a simple node addition:

    1     public RadTreeNodeData[] PopulateFunds(RadTreeNodeData item, object context) 
    2     { 
    3         List<RadTreeNodeData> result = new List<RadTreeNodeData>(); 
    4  
    5         for (int i = 0; i < 5; i++) 
    6         { 
    7             RadTreeNodeData itemData = new RadTreeNodeData(); 
    8             itemData.Text = "Title" + i; 
    9             itemData.Value = "CategoryId" + i; 
    10  
    11             if (Math.IEEERemainder(i, 2) > 0) 
    12             { 
    13                 itemData.ExpandMode = TreeNodeExpandMode.WebService; 
    14             } 
    15             result.Add(itemData); 
    16         } 
    17         return result.ToArray(); 
    18     } 
    19  

    The .aspx side is exactly the same as the demo, but I get an error: 'Invalid web service call, missing value for parameter: 'item'. Can you point me in the right direction. I have no idea what is missing? The error fires on NodeExpand.

    Regards,

    Mark Thomas.
  5. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 14 Jan 2008 Link to this post

    Hello Mark Thomas,

    Attached, please find a small and running project. Download the files and give them a go.

    I hope this will get you started.

    Hope this helps.

    Sincerely yours,
    Nick
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Mark Thomas
    Mark Thomas avatar
    33 posts
    Member since:
    May 2007

    Posted 17 Jan 2008 Link to this post

    Hi Nick,

    Thanks for the demo. I have been out of the office and have only had a chance to look at the demo now.

    It works great and fast.

    Regards,

    Mark Thomas.

  7. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 17 Jan 2008 Link to this post

    Hi Mark Thomas,

    I hope this example will get you started.

    Sincerely yours,
    Nick
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 23 Feb 2010 Link to this post

    One note for anyone is getting this issue - keep the parameter name 'node'. Not anything else. Otherwise you will get the error that parameter is missing.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017