DataTableHeader

UI Components for React
Post Reply
Ranjith Kumar
Posts: 2
Joined: 10 May 2021, 09:21

11 May 2021, 08:10

Is there any way to fix header in the data table.

Thanks In Adavance

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

14 Jun 2021, 16:55

Hi,

Maybe, you can use position: 'sticky' feature. Exp;
https://primefaces.org/primereact/showc ... able/basic
And

Code: Select all

.p-datatable .p-datatable-thead {
    position: sticky;
    top: 70px;
}
Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests