Skip to main content



      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 06:58 Go to next message
Eclipse UserFriend
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 06:58] by Moderator

Re: Auto scroll to bottom of table without any cell selection [message #1614710 is a reply to message #1614660] Fri, 13 February 2015 07:42 Go to previous message
Eclipse UserFriend
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: Sun Jun 22 11:56:04 EDT 2025

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

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

Back to the top