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: Datatable Sort Bug

Maximilian Schulze priority asked 2 years ago


Hi,

I currently have a problem with the datatables. I have a datetime '2022-01-01' and in the td I write data-sort="2022-01-01" but unfortunately it doesn't work. So the old datatables accept it... See screenshots...

Interestingly the HTML does not show the data-sort...

New Datatable

enter image description here

Old Datatable

enter image description here

My Code enter image description here


Kamila Pieńkowska staff answered 2 years ago


This is not a bug. MDB 5 does not have something like data-sort as it is a separate product from MDB4 jQuery.

Also, I don't see why you need this. Data loaded with JS are sorted without adding attributes. Adding type won't make them sort as a date even when you add type date. https://mdbootstrap.com/snippets/standard/kpienkowska/4650136


Maximilian Schulze priority answered 2 years ago


My Column is a type of date

enter image description here



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: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 6.0.1
  • Device: PC
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No