I am using web data tree.
My requirement is
1. nodes with 6 levels.
2.minimum 2000 nodes at level 1 and count can increase in future.
3. for every node IsEmptyParent property is true.
4. I am adding child to nodes at time of expanding node first time.
I am able to bind 2000 node to level 1 , but now if i will expand any node to get level 2 then i am getting exception i.e. javascript object deserializable . something like that
Please provide me solution to this.if you need more information tell me . I appreciate your relpy
Hello Tarun ,
Thank you for letting me know.
If you encounter any issues or have any additional questions after trying my suggestion don’t hesitate to let me know.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://es.infragistics.com/support
Thanks Maya for your response.
Yes, I am loading minimum 2000 child nodes at time of node expand.I can't set EnableAjax to false.Because it will post back whole page.I will try to change my config file and let you know in case i need your help again
Thanks once again.I hope your solution will work for me.
Thank you for posting in our forum.
Are you loading a large number of nodes for the child levels when you expand them?
Also could you share the whole stack trace of the exception you’re getting so that I may look into it?
If you’re loading a large number of nodes it’s possible that the amount of data that is being passed during the ajax request that is initiated for populating the child nodes exceeding the maximum allowed length that is accepted by the JavaScriptSerializer for the JSON strings. You can try setting the following options in your config file:
<configuration>
<appSettings>
<add key="aspnet:MaxJsonDeserializerMembers" value="50000000" />
</appSettings>
</configuration>
Or
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="50000000"/>
</webServices>
</scripting>
</system.web.extensions>
Note that they can be set to a larger number depending on the amount of nodes that you need to load.
Another options would be to disable the ajax for the tree in which case it will load the nodes over full page postbacks. You can disable the ajax by setting the EnableAjax property of the tree to false.
I’m looking forward to your reply.