I have a RadGrid that has EnableViewState=False, and a pagerStype of Slider. However, when I try to page to subsequent pages, it always resets back to the first one. But, if I change the pagerStype to "nextPrevAndNumeric", it works correctly. Is Slider not supported in this configuration?
Thanks!
3 Answers, 1 is accepted
0
Accepted
Vlad
Telerik team
answered on 07 May 2008, 01:35 PM
Hi Justin,
Indeed slider grid pager does not support turned off ViewState - you can put the page ViewState in Session to minimize page output instead of disabling ViewState.
Hi Vlad, thanks for the quick reply. Good to know that.
Regarding EnableSessionState being turned off, does that also prevent ItemCommands from firing? Do they have to be done client-side now? I've got an image button on a row that kicks off an ItemCommand, but it never posts the event back to the server. But, when I turn view state on, it does.
Thanks for your help. The viewstate optimizations with RadGrid have resulted in a 90% reduction in page size in some areas, so I'm very happy with it. Now I'm just trying to get familiar with the limitations/caveats.
Generally EnableSessionState should not affect grid commands - I tried this locally and everything worked fine on my end. You can find an example attached which illustrates how to put the page ViewState in Session.