Sometimes we receive requirements for Page functionality ( Pagination ) into our WinGrid. As you know from our online documentation and forum threads that our WinGrid does not have any paging functionality ( at that moment you could use Load-On-Demand feature of the UltraDataSource component. This allows you to only load into the grid the rows that are needed, rather than all of them.)
One possible approach to achieve desired behavior, could be if you inherit default functionality from our WinGrid and extend it. I made a small sample, of course it is not fully functional, but you can use it as a starting point. You are able:
- to use page navigation
- to change dock style of your page navigator
- to determinate number of rows per page
- to use Load-On-Demand functionality
- to use Sort functionality
- to use Filtering
Please note that I didn`t have a time to make a lot of tests, so If anybody find any bugs, errors, doubts, please do not hesitate to write me. It would be useful and I will look at that in the first free time spot I have.
If you take a look at the attached video file below, you we see how work this grid with 100 000 rows, 10 columns and different settings of “Rows per Page” property:
- with “Rows Per Page” = 100;
- with “Rows Per Page” = 10;
- with “Rows Per Page” = 17; this will present that last page contains less number of rows.
- with “Rows Per Page” = 1 000 000; this will present that grid`s contain only one page.
Here is the second part of the video
Hello,
yes, I am attaching entire solution. Please Builds all solution before run the sample.
Hi Hristo,
I downloaded it and it doesnt have the UltraGridPaging project.
Could you please upload it too?
Thanks,
Alberto
Uh, yea... that's not the source code.
Hello ,
You could download the sample by clicking on the file on the bottom of the post.
http://ko.infragistics.com/community/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.42.69.15/UltraGridPagingSample-_2800_2_2900_.zip
I hope that this will helps you.
Where is the source code for this sample?