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

RadDropDownTree with wcf-Service

1 Answer 59 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 25 Jan 2017, 03:56 PM

Hello dear telerik-team,

we are facing a huge problem with your example from here: http://demos.telerik.com/aspnet-ajax/dropdowntree/examples/populatingwithdata/webserviceandclienttemplates/defaultcs.aspx  , because we have like ~18000 Categories which we have to fill.

 

The problem we are now facing is, that we have created the exact copy of you webservice, but it isn't working like on your site.

We are using "Postman"-Extension for chrome and when we post something like 

"{"node":{"Text":"Politics","Value":"2","Key":null,"ExpandMode":3,"NavigateUrl":null,"PostBack":true,"DisabledCssClass":null,"SelectedCssClass":null,"HoveredCssClass":null,"ImageUrl":null,"HoveredImageUrl":null,"DisabledImageUrl":null,"ExpandedImageUrl":null,"ContextMenuID":"","Checked":false},"context":[]}"

on your demo-Url : http://demos.telerik.com/aspnet-ajax/dropdowntree/examples/populatingwithdata/webserviceandclienttemplates/DropDownTreeWebService.svc/LoadData

We are getting a nice json which looks like this:{
  "d": [
    {
      "__type": "DropDownNodeData:#Telerik.Web.UI",
      "Attributes": [],
      "ExpandMode": 0,
      "Text": "CNN",
      "Value": "5"
    }, ........

But when we are doing the same thing to our webservice we get :

[
  {
    "Attributes": [],
    "ExpandMode": 0,
    "Text": "Sammeln & Seltenes",
    "Value": "1"
  }, ....

So we are wondering if you could tell us, which settings for the service you have done in the web.config file.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 26 Jan 2017, 09:38 AM
/Closed we just used another solution without webservice call.
Tags
DropDownTree
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Share this question
or