# Angular Grid Sticky Rows

Sticky rows are the rows that are visible at all times while the user scrolls the [Kendo UI for Angular Grid](https://www.telerik.com/kendo-angular-ui-develop/components/grid) vertically. They are scrollable like regular rows, but are stacked at the top or bottom of the grid (depending on the end user scrolling action) instead of leaving the Grid viewport.

## Setup

To set the sticky state of the Grid rows:

* Ensure that the Grid is [scrollable](https://www.telerik.com/kendo-angular-ui-develop/components/grid/scroll-modes) (it is by default).
* Provide a [rowSticky](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent#rowsticky) callback which returns a boolean, determining whether a given row is sticky or not.

The following example demonstrates how to make certain rows sticky so that they are always visible during vertical scrolling.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/grid/sticky-rows/basic/source.txt)

## Sticky Rows in Master-Detail Grids

Currently, the sticky rows functionality is not supported in master-detail scenarios. However, master rows in master-detail grids can still be sticky, as long as they are not expandable. The following example demonstrates how to [prevent displaying the detail template](https://www.telerik.com/kendo-angular-ui-develop/components/grid/master-detail/detail-template/#conditional-display) for the sticky rows.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/grid/sticky-rows/master-detail/source.txt)

## Known Limitations

* Using sticky rows in master-detail scenarios is not supported.
* Using sticky rows with grouped data is not supported.
* Using sticky rows alongside the virtual scrolling functionality is not supported.
* The sticky columns functionality is not supported in Internet Explorer. It relies on setting the [CSS position](https://developer.mozilla.org/en-US/docs/Web/CSS/position) property of internal table elements to `sticky`, and [Internet Explorer does not provide support for this](https://developer.mozilla.org/en-US/docs/Web/CSS/position#browser_compatibility).

## Suggested Links

* [ColumnComponent](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/columncomponent)
* [API Reference of the GridComponent](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api/gridcomponent)
* [API Index of the Grid](https://www.telerik.com/kendo-angular-ui-develop/components/grid/api)
