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

[Solved] Viewstate size

1 Answer 193 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 21 Jul 2009, 03:53 PM
I have a simple RadGrid (Q2 2009) instance that does its databinding on the client side using a web service. My problem is with the amount of viewstate that the grid generates.

My grid has 8 columns. Of those, 5 are data bound columns, 2 button columns and 1 is a template column. I have tried removing these columns in various combinations but to no avail.

The grid looks to be creating about 40-50KB of viewstate on page load (before the grid calls the web service to get its data). I do not need to persist viewstate data in my current scenario.

I have tried to disable viewstate with EnableViewState=false on 1) the page 2) the user control 3) the radgrid itself. None of these seem to impact the volume of viewstate that the control generates.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 24 Jul 2009, 02:16 PM
Hi Alex,

I suggest that you check out the below articles and find more suggestion on how to optimize your grid performance:

http://www.telerik.com/help/aspnet-ajax/grdviewstateoptimization.html
http://www.telerik.com/help/aspnet-ajax/grdviewstatereductiontechniques.html
http://www.telerik.com/products/aspnet-ajax/resources/top-performance.aspx

If it does not help, could you please elaborate a bit on your scenario?

Greetings,
Iana
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
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or