PDA

View Full Version : Pagination in Grid -- Buffered pagination or Override Paging Toolbar



jAson bOurnE
18 Oct 2010, 1:51 AM
Hi

I am working on a grid which will be used to fetch a large amount of data. But I want only to load a fixed number of elements (50) in the grid at one time.

I studied buffered pagination approach given here: http://dev.sencha.com/deploy/dev/examples/grid/buffer.html
But I cannot understand how it'll behave from the server side.

I also am thinking of the option to override Paging Toolbar's Navigation buttons and then use an AJAX call to fetch data. (Looks a bit tedious)

Please can you provide me a lucid solution. I am new to this technology...

My server side contains method to fetch data from the database given the start and end params...

getResultSet( int start, int end)


The results are returned in the form of an Array which is encapsulated in JSON and then to grid's Store