Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
Bulk Data Loaded on demand in treeview
posted

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

Parents
  • 29417
    Offline posted

     Hello Tarun , 

    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

    <configuration>

       <system.web.extensions>

           <scripting>

               <webServices>

                   <jsonSerialization maxJsonLength="50000000"/>

               </webServices>

           </scripting>

       </system.web.extensions>

    </configuration>

     

    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.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://es.infragistics.com/support

     

Reply Children