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

Does MaxJSONLength in web.config affect RadTreeView?

1 Answer 123 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Leigh
Top achievements
Rank 1
Leigh asked on 17 Apr 2011, 06:17 PM
Hello,

I have a RadTreeView control that fails with the following error, if I populate it with a large (say, 2000) number of nodes:

"Error during serialization or deserialization using the JSON JavaScriptSerializer.  The length of the string exceeds the value set on the maxJsonLength property."

I am able to set the maxJsonLength property in the web.config of my application - however no matter what value I give to maxJsonLength (up to Int32.MaxValue), the above error appears.  I've tried every combination of maxJsonLength value and number of nodes in my tree.  

In the Microsoft docs (http://msdn.microsoft.com/en-us/library/system.web.configuration.scriptingjsonserializationsection.maxjsonlength(v=VS.90).aspx), it says:

"The value of the MaxJsonLength property applies only to the internal JavaScriptSerializer instance that is used by the asynchronous communication layer to invoke Web services methods."

So now I'm thinking that RadTreeView doesn't pay attention to maxJsonLength.  Is this correct?

Thanks,
Leigh

1 Answer, 1 is accepted

Sort by
0
Leigh
Top achievements
Rank 1
answered on 19 Apr 2011, 02:17 PM
Tags
TreeView
Asked by
Leigh
Top achievements
Rank 1
Answers by
Leigh
Top achievements
Rank 1
Share this question
or