OGE logoOGE

Pinned Rows

Keep rows in view: pin rows above or below the scrolling body, keep the current group headers under the header while scrolling, and drag rows between grids.

pinnedTopRows pinnedBottomRows stickyGroupRows rowDragGroup pager

Pinned rows & pager options

pinnedTopRows / pinnedBottomRows take data objects or keys of rows on the loaded page (which then leave the body). They sit in sticky sections — virtual scrolling included — and are display rows. The pager here adds first / last buttons, a go-to-page input and a custom info text (*ogePagerInfoTemplate).

sticky sections showFirstLastButtons showPageInput
Name
Department
Salary
Budget
1500000
Zeynep
Support
61000
Zeynep
Sales
112000
Ali
Sales
71000
Mert
HR
59000
Emre
Support
97000
1–5 of 23

Sticky group rows

With stickyGroupRows the group rows enclosing the first visible row stay under the header while scrolling — at every level and under virtual scrolling. They are a visual aid: the real group rows stay in place for keyboard and screen-reader users, and a click on a sticky row scrolls to it. The second level groups hire dates by quarter (groupInterval="quarter").

virtualScroll groupInterval: quarter
Department
Hired
Name
City
Department: Engineering (93)
Hired: Q1 2015 (2)
Engineering
1/2/2015
Deniz
Ankara
Engineering
1/6/2015
Emre
Antalya
Hired: Q2 2015 (2)
Engineering
4/22/2015
Elif
İzmir
Engineering
5/21/2015
Can
İstanbul
Hired: Q3 2015 (2)
Engineering
8/7/2015
Selin
Antalya
Engineering
8/28/2015
Selin
İzmir
Hired: Q4 2015 (3)
Engineering
11/1/2015
Mert
Bursa
Engineering
11/20/2015
Deniz
Antalya
Engineering
12/11/2015
Deniz
Ankara
Hired: Q2 2016 (1)
Engineering
5/2/2016
Ali
Ankara
Hired: Q3 2016 (3)
Engineering
7/4/2016
Mert
Antalya

Drag rows between grids

Grids sharing a rowDragGroup accept each other's rows. The target fires rowDrop with the source row and the insert index; cross-grid drops move no data by themselves, so the handler moves the row (a drop inside the same grid is the usual reorder).

rowDragGroup rowDrop
To do
Write specs
Review the API
Ship it
Done
Plan the wave