Questions tagged [paging]

A memory-management technique where a computer stores and retrieves data from secondary storage for use in main memory. Memory is divided into equal sized pages so to not waste any memory.

2459 questions
15
votes
2 answers

How do I use Linq for paging a generic collection?

I've got a System.Generic.Collections.List(Of MyCustomClass) type object. Given integer varaibles pagesize and pagenumber, how can I query only any single page of MyCustomClass objects?
Zack Peterson
  • 56,055
  • 78
  • 209
  • 280
15
votes
4 answers

Forcing ASP.NET GridView's pager to show

is there some way to force the gridview's pager to show up, even when there is only one page of data on screen? I'm building a gridview-based control with a custom pager (w/dropdown for pagesize) and everything is working fine, except when user…
juarola
  • 689
  • 2
  • 10
  • 20
14
votes
6 answers

ASP.NET paging control

I'm looking for a decent paging control in ASP.NET, much like the Stackoverflow pager. Can anyone recommend one? I'd prefer one that didn't use Postback either, just a customisable querystring.
Chris S
  • 64,770
  • 52
  • 221
  • 239
14
votes
7 answers

Pseudo Random Repeatable Sort in SQL Server (not NEWID() and not RAND())

I would like to randomly sort a result in a repeatable fashion for purposes such as paging. For this NEWID() is too random in that the same results cannot be re-obtained. Order by Rand(seed) would be ideal as with the same seed the same random…
ccook
  • 5,869
  • 6
  • 56
  • 81
14
votes
5 answers

iPhone - Nesting UIScrollViews for horizontal paging and vertical scrolling

I'm developing my first iPhone app and I would greatly appreciate you guy's input on a problem I'm having. I'm looking to implement scrolling both horizontally and vertically. I want the horizontal scrolling to be paged, without the vertical one…
ebergner
  • 143
  • 1
  • 1
  • 5
14
votes
3 answers

How to handle pagination when the source data changes frequently

Specifically, I'm using Elasticsearch to do pagination, but this question could apply to any database. Elasticsearch provides methods to paginate search results with handy from and to parameters. So I run a query get me the most recent data from…
bradvido
  • 2,743
  • 7
  • 32
  • 49
14
votes
5 answers

UITableView page size when paging enabled

I'm facing with a simple but tedious problem. What I'm trying to do is make an UITableView to page like an UIScrollView but enabling paging doesn't help me so much because I can't set page size so the tableview scrolls exactly of its height so it…
maxcanna
  • 1,755
  • 2
  • 12
  • 15
14
votes
3 answers

Is there any performance issue using Row_Number to implement table paging in Sql Server 2008?

I want to implement table paging using this method: SET @PageNum = 2; SET @PageSize = 10; WITH OrdersRN AS ( SELECT ROW_NUMBER() OVER(ORDER BY OrderDate, OrderID) AS RowNum ,* FROM dbo.Orders ) SELECT * FROM OrdersRN WHERE…
majkinetor
  • 8,730
  • 9
  • 54
  • 72
14
votes
5 answers

Android - How do you efficiently load a large amount of text in a TextView?

I'm writing an Android app that reads a single text file and display it on a TextView. What I'm doing right now is read the whole file into a String (using BufferedReader and StringBuilder) and display it on a TextView using setText(string). A…
Ray Zhou
  • 716
  • 10
  • 22
13
votes
5 answers

How can I use a page table to convert a virtual address into a physical one?

Lets say I have a normal page table: Page Table (Page size = 4k) Page #: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Page Frame #: 3 x 1 x 0 x 2 x 5 x 7 4 6 x x x How can I convert an arbitrary…
Sinquist
13
votes
4 answers

How do you implement paging in ASP.NET MVC?

Currently, I'm using a strategy found on many blog posts. Basically, the URL contains the page number (e.g. /Users/List/5 will give you the users on page 5 of your paged list of users). However, I'm not running into a situation where one page must…
Kevin Pang
  • 41,172
  • 38
  • 121
  • 173
13
votes
2 answers

NHibernate paging with SQL Server

When using SetFirstResult(start) and SetMaxResults(count) methods to implement paging I've noticed that the generated query only does a select top count * from some_table and it does not take the start parameter into account or at least not at the…
Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
13
votes
2 answers

Angular pagination - update data onclick

I'm attempting to implement pagination on a angular/bootstrap site. I have the data showing with the correct # of per-page rows, I have the angular paging showing the right number of pages...but heck if I can find anywhere that tells me HOW to use…
NikZ
  • 650
  • 3
  • 8
  • 20
13
votes
2 answers

C Pointer not getting set

I'm creating a sort of toy OS and I'm trying to set up paging. The boot loader maps the kernel into the higher half first, and then I'm trying to set up a new page directory. I have some structures defined like this: typedef struct pd_entry…
bre
  • 131
  • 4
13
votes
4 answers

Is there a paging solution for ASP.NET MVC that does paging in the database?

Most of the ASP.NET MVC paging solutions I have found by googling look like they get all rows from a database table in the form of a IEnumerable collection, perform some paging conversion on the IEnumerable collection, and then return the results to…
gabe
  • 1,873
  • 2
  • 20
  • 36