Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Lazy Loading / Paging(How do I implement paging with Nattable?)
Lazy Loading / Paging [message #1009187] Thu, 14 February 2013 16:15 Go to next message
Geraldine von RotenFriend
Messages: 5
Registered: December 2012
Location: Zürich
Junior Member
Hi
I am trying to implement paging/lazy loading in the Nattable.
We previously implemented a different version with our own datalayer/dataprovider that polled the server everytime a cell in a row, that wasn't loaded yet, was requested by the nattable.
The requirements changed and now we need to poll the server for the data at the visible indices everytime the viewport changes (i.e. when someone scrolls the table). Is there a way to do this?
I suppose with a datalayer/dataprovider it would be possible to find out when the viewport changes, because a new cell will be requested, but I don't know how to find out what rows are visible at that moment. Any ideas anyone? Smile
Thanks for your help,
Geraldine
Re: Lazy Loading / Paging [message #1009192 is a reply to message #1009187] Thu, 14 February 2013 16:26 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
Hi Geraldine,

as explained in here http://www.eclipse.org/forums/index.php/t/452182/ currently there is no nice way to implement such a behaviour. There is a refactoring of the viewport planned for 1.0.0 and there we'd like to consider some kind of viewport listeners. Until that there might be only workarounds I'm not aware of. Maybe some others have experience with that.

Greez,
Dirk
Re: Lazy Loading / Paging [message #1010820 is a reply to message #1009192] Mon, 18 February 2013 09:48 Go to previous messageGo to next message
Geraldine von RotenFriend
Messages: 5
Registered: December 2012
Location: Zürich
Junior Member
Thanks for the (incredibly fast Smile) answer Dirk. I had seen that thread and was afraid the answer might still be the same. Do you know more about a possible release date for 1.0.0 yet?
Re: Lazy Loading / Paging [message #1010824 is a reply to message #1010820] Mon, 18 February 2013 09:53 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
As GlazedLists 1.9 is released now we are trying to release 1.0.0 at the end of March. There are still some open tasks we hopefully will be able to solve until then like:
- Update the Build to remove dependencies to local third-party-libraries
- Add a fully functional p2 update site
- Refactor the Viewport to support smooth scrolling and viewport events
- some bugfixes and smaller enhancements that are requested frequently
Previous Topic:Using GroupByHeaderLayer
Next Topic:realizable row header width
Goto Forum:
  


Current Time: Fri Apr 26 13:46:39 GMT 2024

Powered by FUDForum. Page generated in 0.03714 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top