Package com.vaadin.shared.ui.grid
Interface GridClientRpc
-
- All Superinterfaces:
ClientRpc,Serializable
public interface GridClientRpc extends ClientRpc
Server-to-client RPC interface for the Grid component.- Since:
- 7.4
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidrecalculateColumnWidths()Command client Grid to recalculate column widths.voidscrollToColumn(String columnId, ScrollDestination destination)Command client Grid to scroll to a specific column.voidscrollToEnd()Command client Grid to scroll to the last row.voidscrollToRow(int row, ScrollDestination destination)Command client Grid to scroll to a specific data row and its (optional) details.voidscrollToStart()Command client Grid to scroll to the first row.
-
-
-
Method Detail
-
scrollToRow
void scrollToRow(int row, ScrollDestination destination)Command client Grid to scroll to a specific data row and its (optional) details.- Parameters:
row- zero-based row index. If the row index is below zero or above the row count of the client-side data source, a client-side exception will be triggered. Since this exception has no handling by default, an out-of-bounds value will cause a client-side crash.destination- desired placement of scrolled-to row. See the documentation forScrollDestinationfor more information.
-
scrollToStart
void scrollToStart()
Command client Grid to scroll to the first row.
-
scrollToEnd
void scrollToEnd()
Command client Grid to scroll to the last row.
-
recalculateColumnWidths
void recalculateColumnWidths()
Command client Grid to recalculate column widths.- Since:
- 8.1.1
-
scrollToColumn
void scrollToColumn(String columnId, ScrollDestination destination)
Command client Grid to scroll to a specific column.- Parameters:
columnId- the id of the columndestination- desired placement of scrolled-to column. See the documentation forScrollDestinationfor more information.- Since:
- 8.18
-
-