I am trying to create a fixed data table that should be always freezed( top) on scroll? Can someone help me with this? I have tried
style={position: fixed} for the data table that didn’t help. Any suggestions would be appreciated
I am trying to create a fixed data table that should be always freezed( top) on scroll? Can someone help me with this? I have tried
style={position: fixed} for the data table that didn’t help. Any suggestions would be appreciated
Hi @gudiya_009
What are you trying to do? Are you trying to freeze the header?
No, I am trying to freeze the complete table
See fixed_rows parameter in DataTable. Documentation here.
fixed_rows( dict ; default{ headers: false, data: 0 }):fixed_rowswill “fix” the set of rows so that they remain visible when scrolling vertically down the table.fixed_rowsfixes rows from top-to-bottom, starting from the headers. Ifheadersis False, no rows are fixed. Ifheadersis True, all header and filter rows (seefilter_action) are fixed. Additional data rows can be fixed by assigning a number todata
Try using that parameter. If it doesn’t work, let me know.