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

[Solved] EnableViewState=False and Slider PagerStype

3 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 07 May 2008, 01:17 PM
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

Sort by
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.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Justin
Top achievements
Rank 1
answered on 07 May 2008, 02:10 PM
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.

Thanks!
0
Vlad
Telerik team
answered on 07 May 2008, 02:39 PM
Hi Justin,

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.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Justin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Justin
Top achievements
Rank 1
Share this question
or