Serversidecallback posting huge volume of data back and forth

2 posts, 0 answers
  1. ali
    ali avatar
    17 posts
    Member since:
    Jan 2009

    Posted 10 Mar 2009 Link to this post

    Hi,

    When Im using node expand mode of serversidecallback for an ajax'ed node expand, Im finding that a lot of data is posted to the server. The amount of data seems to be additive as well. For example, if I expand one node and it posts back 14k, when I expand the next one which does not return any more data than the first one, it posts back 22k.

    I understand that this is due to the viewstate being updated but is there any way to reduce the amount of data being posted.

    The viewstate seems to contain each node's imageurl and openimageurl. Is there anyway to set them so that they use one common variable?

    our image url's are quite big:
    http://localhost/rvservices/WebResource.axd?d=9sITAdMvGK1Qm1ik7fcTRAuCttzSiFEdU7ak4wHdOcaPWw7k0RVlXsufQ613GzmI5kzI5-YeggENTdPMR3JBqxP2md__DsQqWwb_Zectys-6gsnlGHo0FBoxXbLVnO480&t=633722770144766645


    Thanks
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 12 Mar 2009 Link to this post

    Hi ali,

    ServerSideCallback load on demand does not update the ViewState. It indeed submits it to the server however. If the PersistLoadOnDemandNodes property of the treeview is set to true (which it by default is) the nodes loaded on demand are logged and sent back to the server. If you don't need this behavior you can set the PersistLoadOnDemandNodes property to false. This should decrease the ammount of posted data.

    Greetings,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top