This is a migrated thread and some comments may be shown as answers.

Serversidecallback posting huge volume of data back and forth

1 Answer 30 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 10 Mar 2009, 12:36 PM
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

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Mar 2009, 11:15 AM
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.
Tags
TreeView
Asked by
ali
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or