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

Gird View values are Resets When PageIndexChanged

2 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
kasi
Top achievements
Rank 1
kasi asked on 29 May 2011, 07:48 PM
Hi All,
I have a rad grid which is having a Check box Column and Text box in Item Template. I am changing the value in the grid then go the second page by page index changing. when i come back to first page my previous tyeped values are reseting. I want to insert the whole grid value by one submit button.. Can any one give me the best solution for the above problem..

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 May 2011, 05:24 AM
Hello Kasi,

RadGrid loses its current selection when the data is sorted, a new group or filter is added, or when the current page changes. One suggestion is you can store selected items value into a HiddenField to preserve state of the grid. Check the following documentation which explains more about this.
Persisting the selected rows client-side on sorting/paging/filtering/grouping.

Thanks,
Princy.
0
kasi
Top achievements
Rank 1
answered on 30 May 2011, 09:46 AM
Hello Princy,
Thanks for your reply. For that Grid I am using Need Data Source , It's calling the database each time when i  click the next page, How to do..

 

 

Tags
Grid
Asked by
kasi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
kasi
Top achievements
Rank 1
Share this question
or