Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Auto scroll to bottom of table without any cell selection
Auto scroll to bottom of table without any cell selection [message #1614660] Fri, 13 February 2015 11:58 Go to next message
Chetana Barhate is currently offline Chetana BarhateFriend
Messages: 18
Registered: February 2014
Junior Member
Hi,

In one of the table in my project having a requirement that when the table display, the scroll should be bottom of the table without any row selection. Row should not get selected automatically unless user select any row by mouse click.

Before this requirement, to show the scroll bar at bottom we have implemented it selecting the last row of the table so scroll bar automatically goes bottom of the table.
But now the client wants that the scroll should be at bottom of table and row should not be selected.

Is it possible Nattable??

Thanks in advance.


[Updated on: Fri, 13 February 2015 11:58]

Report message to a moderator

Re: Auto scroll to bottom of table without any cell selection [message #1614710 is a reply to message #1614660] Fri, 13 February 2015 12:42 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2803
Registered: July 2012
Senior Member
It is possible by calling viewportLayer.moveRowPositionIntoViewport(int), but that method will only work correctly after rendering. This is because the client area is not set at creation time.

To work around that you could create a handler for the ClientAreaResizeCommand that moves the last row into the viewport after it was handled by the DataLayer.

Before you ask: no there is no corresponding event to indicate that the client area resize is finished. That would possibly kill the rendering performance.
Previous Topic:Automatically resize columns in exported excel sheet.
Next Topic:Possibility to set the minimum size of column in ColumnResizeDragMode
Goto Forum:
  


Current Time: Sat Mar 06 18:19:54 GMT 2021

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

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

Back to the top