This question is locked. New answers and comments are not allowed.
How would you go about making serverside paging, without using the WFC RIA architecture?
We have an existing project, where we want to use RadGridView and RadDataPager, instead of the current standard gridview and pager,
and i have played around a bit with some ideas to make "custom" serverside paging. I can't get it to work.
Do you have any pointers on where to start? And is this supported "out of the box" in the RadDataPager, if so, where should i be looking?
E.g. 20 items per page, 200 items in all:
My own solution, which is not working, is to get 20 items from the service, and also get the total item count. Then i calculate how many items, depending on the pageindex, there are before and after the current page of 20 items, and add 'N' number of bogus item as fillers, to let the DataPager calculate number of pages total. E.g. pageindex = 3 (page 4) i would have 60 bogus items at the start of the source collection, the the 20 'real' items, and after these i would have 120 more bogus items.
But when i update the Source collection of the datapager and gridview, its seems to reset its pageindex. Im listening on the DataPagers PageIndexChanging event, and update the source collection during this event.
Looking forward to some feedback.
Regard,
Lars Udengaard
We have an existing project, where we want to use RadGridView and RadDataPager, instead of the current standard gridview and pager,
and i have played around a bit with some ideas to make "custom" serverside paging. I can't get it to work.
Do you have any pointers on where to start? And is this supported "out of the box" in the RadDataPager, if so, where should i be looking?
E.g. 20 items per page, 200 items in all:
My own solution, which is not working, is to get 20 items from the service, and also get the total item count. Then i calculate how many items, depending on the pageindex, there are before and after the current page of 20 items, and add 'N' number of bogus item as fillers, to let the DataPager calculate number of pages total. E.g. pageindex = 3 (page 4) i would have 60 bogus items at the start of the source collection, the the 20 'real' items, and after these i would have 120 more bogus items.
But when i update the Source collection of the datapager and gridview, its seems to reset its pageindex. Im listening on the DataPagers PageIndexChanging event, and update the source collection during this event.
Looking forward to some feedback.
Regard,
Lars Udengaard