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
Old Datatable
My Code
Kamila Pieńkowska staff answered 1 year 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
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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