Jeeva
Jeeva

Reputation: 11

How to make all column headers sticky(fixed) in ag-grid in angular while page scrolling?

I have tried this for two days but still I couldn't find the solution can any one please help me in this.

Upvotes: 1

Views: 1687

Answers (2)

Gina Habib
Gina Habib

Reputation: 21

you can use sticky

    .header {position: sticky;}

Upvotes: 0

Cuong Hoang
Cuong Hoang

Reputation: 578

I suppose your header HTML be like:

the CSS for it to stick on top must be:

.header {
  position: fixed;
  width: 100vw;
  top: 0px;
  left: 0px;
}

Upvotes: 0

Related Questions