Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Can first column of datatable be made sticky when scrolling horizontally?

john vivarelli free asked 6 years ago


I've just started to assess your product. I have a need to display some data in a spreadsheet-like format. I also need the ability to freeze the top row and the first column. So, I thought that datatables could provide a solution. The vertical and horizontal scrolling works fine but I can't see an option to freeze the first column. Is there some workaround or can you offer some suggestions? Cheers, John

Marta Wierzbicka staff answered 6 years ago


Hi, for now, we don't have this option for our data tables. We will think about it in the future. Best, Marta

john vivarelli free commented 6 years ago

Thanks Marta. Looks like I need some workaround for now.

Marta Wierzbicka staff answered 6 years ago


Hi, have you tried this solution: https://stackoverflow.com/questions/1312236/how-do-i-create-an-html-table-with-fixed-frozen-left-column-and-scrollable-body? Best, Marta

john vivarelli free commented 6 years ago

Thanks Marta for the suggestion. I hadn't yet discovered some of the possible solutions in yours. I was specifically looking at being able to freeze both the first column and the table header - just like you can with Excel. Was also wondering whether there was a solution that would work with Bootstrap and preferably MDB. Would your suggestion be compatible with MDB datatables ? Cheers, John


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.9
  • Device: desktop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No