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

Minimize ViewState

2 Answers 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter Zolja
Top achievements
Rank 1
Peter Zolja asked on 10 Nov 2008, 11:28 PM
I'm working with RadGrid and I would like to use it for viewing purposes only. I've set EnableViewState to false, but it still generates about 5K of viewstate data. How can I completely disable the viewstate or at least make it less than 1K?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Nov 2008, 07:35 AM
Hi Peter,

Try setting  Enableviewstate property for the page to false and see whether it helps.

<%@ page Enableviewstate="false" %>  


Thanks
Shinu.
0
Peter Zolja
Top achievements
Rank 1
answered on 11 Nov 2008, 04:07 PM
Nope, pretty much the same result. It somehow manages to completely bypass any view state settings...
Tags
Grid
Asked by
Peter Zolja
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Peter Zolja
Top achievements
Rank 1
Share this question
or