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

[Solved] Change Page and change Pagesize is not working when Grid Enable viewstate is false

2 Answers 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sathies
Top achievements
Rank 1
sathies asked on 07 Feb 2009, 11:39 AM
Hi,

I have created a grid dynamically in page init event and also i set  EnableViewState to false.
I am facing the  following problem:
Change Page and change Pagesize is not working in the NextPrevNumericAndAdvanced pagermode but next and prev is working.

please help me to resolve this problem.

regards
sathies

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Feb 2009, 08:10 AM
Hi Sathies,

As far as I know RadGrid requires ViewState to be turned on to implement the paging.

-Shinu.
0
Flea#
Top achievements
Rank 1
answered on 30 Apr 2009, 08:46 PM
I was having the same problem; thanks Shinu for the tip! Just for additional clarification, the MasterTableView must have EnableViewState set to true.

    <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" ></PagerStyle
    <MasterTableView Width="100%" CommandItemDisplay="Top" ClientDataKeyNames="Id"  
    DataKeyNames="Id" EnableViewState="true"

Tags
Grid
Asked by
sathies
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Flea#
Top achievements
Rank 1
Share this question
or