Go Back   SmartClient Forums > Smart GWT Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 21st Jun 2011, 23:57
deejay deejay is offline
Registered Developer
 
Join Date: Mar 2011
Posts: 27
Default Server-side listgrid paging with paging bar

Hello,

i've read the following threads about server-side pagination with a paging bar:
http://forums.smartclient.com/showthread.php?t=7740&highlight=server-side+pagination
http://forums.smartclient.com/showthread.php?t=3103&highlight=server-side+pagination

I want to disable the "paging by scrolling" and enable the "paging by clicking a button" (pagination bar). Whats the approach here?

Extending the JPADataSource and modify the DSRequest with sending the current page, modifiing the resultset to only receive the data for the current visible page? And of course adding a simple paging bar with simple buttons for each page...
Reply With Quote
  #2  
Old 22nd Jun 2011, 03:32
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,316
Default

There's no need for any server-side changes to use this approach.
Reply With Quote
  #3  
Old 22nd Jun 2011, 04:27
deejay deejay is offline
Registered Developer
 
Join Date: Mar 2011
Posts: 27
Default

Thank you for the fast reply.

But what is the correct approach if I do not need to create a custom datasource?

What i have read is, that such paging is not possible, because the listgrid is a live grid which automatically calls "fetch" if the user scrolls up or down.
Reply With Quote
  #4  
Old 22nd Jun 2011, 10:28
deejay deejay is offline
Registered Developer
 
Join Date: Mar 2011
Posts: 27
Default

We are using SmartGWT Pro, but i can't find any easy solution for this - please help.

Last edited by deejay; 22nd Jun 2011 at 10:32..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Register a client side sort callback function for ListGrid server sort svonmiller Technical Q&A 2 1st Apr 2011 06:16
ListGrid sorting executed only from server side scossu Technical Q&A 0 14th Jul 2010 06:19
ListGrid sending request that causes Exception on server side csillag Smart GWT Technical Q&A 0 25th Apr 2010 23:52
Is it possible to have server side grouping for ListGrid akishovar Technical Q&A 4 12th Apr 2010 14:41
Server side sorting on listgrid pallavi28 Technical Q&A 1 1st Apr 2010 03:16

© 2010,2011 Isomorphic Software. All Rights Reserved