Does MaxJSONLength in web.config affect RadTreeView?

2 posts, 0 answers
  1. Leigh
    Leigh avatar
    10 posts
    Member since:
    Jan 2011

    Posted 17 Apr 2011 Link to this post

    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
  2. Leigh
    Leigh avatar
    10 posts
    Member since:
    Jan 2011
Back to Top