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

Paging/ NeedDataSource

3 Answers 237 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 01 Feb 2012, 04:03 PM
Hi,
I am looking at a small issue with one of our grids.  Just looking to find out some additional information about the RadGrid's events.  Should the NeedDataSource event be fired every time we change pages? And if so is there a way to turn it off.  We pass the Grid say 30 rows, we would like our users to be able to page between these rows without having to call NeedDataSource everytime.

Thanks,
Michael

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 01 Feb 2012, 06:06 PM
Hello Michael,

Sorry, But we have to re assign the data to the RadGrid.
You can store the data in to the session and get the data from the session and (re) assign to the RadGrid (on filtering,sorting,paging).


Thanks,
Jayesh Goyani
0
Michael
Top achievements
Rank 1
answered on 06 Feb 2012, 12:24 PM
Ok, how will this work with paging then?  If im having to reassign the data surely it will make the paging incorrect?

Thanks,
Michael
0
Jayesh Goyani
Top achievements
Rank 2
answered on 06 Feb 2012, 01:37 PM
Hello,

No, it will automatically re-apply your filter/sorting/paging because it save its value in viewstate and it will re-apply it after your data bind to the grid.

for demo check this link.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Share this question
or