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

WebServiceSettings example please.

6 Answers 227 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Mark Thomas
Top achievements
Rank 1
Mark Thomas asked on 10 Jan 2008, 10:22 AM
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.

6 Answers, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 10 Jan 2008, 12:28 PM
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
0
Mark Thomas
Top achievements
Rank 1
answered on 11 Jan 2008, 03:04 PM
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:

    public RadTreeNodeData[] PopulateFunds(RadTreeNodeData item, object context) 
    { 
        List<RadTreeNodeData> result = new List<RadTreeNodeData>(); 
 
        for (int i = 0; i < 5; i++) 
        { 
            RadTreeNodeData itemData = new RadTreeNodeData(); 
            itemData.Text = "Title" + i; 
            itemData.Value = "CategoryId" + i; 
 
            if (Math.IEEERemainder(i, 2) > 0) 
            { 
                itemData.ExpandMode = TreeNodeExpandMode.WebService; 
            } 
            result.Add(itemData); 
        } 
        return result.ToArray(); 
    } 
 

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.
0
Nikolay
Telerik team
answered on 14 Jan 2008, 01:08 PM
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
0
Mark Thomas
Top achievements
Rank 1
answered on 17 Jan 2008, 09:53 AM
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.

0
Nikolay
Telerik team
answered on 17 Jan 2008, 10:53 AM
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
0
Piyush Bhatt
Top achievements
Rank 2
answered on 23 Feb 2010, 08:18 PM
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.
Tags
TreeView
Asked by
Mark Thomas
Top achievements
Rank 1
Answers by
Erjan Gavalji
Telerik team
Mark Thomas
Top achievements
Rank 1
Nikolay
Telerik team
Piyush Bhatt
Top achievements
Rank 2
Share this question
or