Hi All,
I have a WebDataTree that displays Active and Inactive company names with contact details as child nodes. There are three levels as below:
Active
Company Name
Contact One
Contact Two
Company name and contact details are manually added to the tree in code behind using:
//Add company name to the tree
webDataTree.Nodes(EntityStatus.Active).Nodes.Add(item.CompanyName, item.CompanyId)
// Add contact details to the company node
webDataTree.Nodes(status).Nodes.FindNodeByKey(currentCompanyId).Nodes.Add(contactNode)
This was working fine until recently when we came across a company with more than 3000 contacts. Now, the method that loads the tree runs fine, but the tree still takes a long time to load. When selecting any contact node from the tree to display details of the contact, it brings up an IE error that the script is taking too long to run.
The Infragistics version number is 10.1.20101.1011.
I would appreciate your assistance with this query.
Thanks.
Hello csggroup,
Thank you for the follow-up.
Please let us know if you still experience the issue after disabling the ViewState of the WebDataTree
WebDateTree.EnableViewState = false
Hope hearing from you
Hi Sameh,
I will try your suggestions in the next couple of days and let you know how I go. I appreciate you taking the time to respond!
I found out finally how to solve it
in your config file add the following entry
<
appSettings>
<add key="aspnet:MaxJsonDeserializerMembers" value="5000" />
</appSettings>
ofcourse you can increase the value according to your object size
if you set WebDateTree.EnableViewState = false you will bypas the error seems it is an issue in control view state size
try disabling the viewstate