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.
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
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!
Hi Tsvetelina,
I am just looking at this now. Could you please assist with these two questions:
1. When I disable viewstate, I lose the tree data after a node is selected. I was able to fix this by re-binding my data on Page_Init. Is this correct?
2. When I disable viewstate, the uxWebDataTree.NodePopulate event handler loses the event arguments. As a result, I am unable to retrieve the key of the node that has been clicked. I tried a couple of options like setting hidden variables in node click client side event etc.
What would your suggestion be to implement this functionlity after setting the EnableViewState to false?
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