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

Disable ViewState and Paging

2 Answers 246 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nicholas Walker
Top achievements
Rank 1
Nicholas Walker asked on 09 Jul 2009, 07:19 PM
In previous version if you set enableViewState="false" paging still operated correctly.

In this most recent release if you set enabeViewState="false", the currentpageindex is never updated, and the pageindexchanged event is not fired.  If you enable viewstate does it store all the row data in viewstate?  The regular asp.net controls do, which is why we have trained ourselves to turn off viewstate for grid controls, because viewstate can get very large very quick...


2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Jul 2009, 04:28 AM
Hi Nicholas,

I have read in the telerik help article that when you set EnableViewState set to false, RadGrid will use the page control state to store  the absolutely necessary bits of data that preserve the current paging, sorting, and grouping state. You may go through the following help article to get more details about Optimizing ViewState usage.

Which PagerStyle-Mode are you using? I have also read in the following forum discussion that the NextPrevAndNumeric grid pager type requires the viewstate of the control to be enabled.
Paging arrows not working

Shinu
0
Nicholas Walker
Top achievements
Rank 1
answered on 10 Jul 2009, 05:45 PM
I agree with you.  I am using slider.  With viewState turned off the pager does not work properly.
Tags
Grid
Asked by
Nicholas Walker
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Nicholas Walker
Top achievements
Rank 1
Share this question
or