Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
80
WebDropDown Custom Paging
posted

Can anyone tell me how the WebDropDown paging is implemented. This should be done something like this. I will set the pagesize - 10. So initially when the page is loaded I should get only 10 records from the database and when the pager index is changed, then the data again fetched should be 10 more records of that page.

Ex:

Initially 10 records are fetched from the database and shown in the WebDropDown and the page index will be 1. Now when I click 2 on the Pager, it should fetch the data from 11-20 and display in the WebDropDown.

Please give me some sample with the datasource(like Linq) which supports custom paging.

Parents
  • 24671
    Suggested Answer
    posted

    If your datasource supports paging, the WebDropDown does this automatically for you, you do not need any sort of custom paging.

    Say you have 100 records in the database and page size 10. This means 10 page links will be rendered. There will be only 10 DropDownItem objects bound on the server-side, and if your data source supports paging, 10 will be also fetched from the database - we do the adapter logic also automatically for you, meaning that we set StartRowIndex, MaximumRows, and so on. 

    You can find Linq samples on samples.infragistics.com => WebDropDown 

    Hope this helps,

    Angel 

Reply Children