Mergin two types of columnDefs (two different solutions for two different problems)

Mergin two types of columnDefs (two different solutions for two different problems)

lucastssalucastssa Posts: 1Questions: 1Answers: 0

I was facing two problems related to accents in my table: searching and ordering (sorting).
I've found the solution for both of them individually but not for both of them at the same time.

Solution for searching with accents: https://datatables.net/forums/discussion/36473/datatables-search-filter-special-characters-with-html-data

Solution for sorting with accents: https://datatables.net/plug-ins/sorting/diacritics-sort

The problem is: Both of the solutions uses "type" in columnDefs. I was wondering if it's possible to "merge" this 2 solutions into a single one method or to use 2 types at same time...
I also need to mention that these are the only two options that worked for my two problems.

Thanks for attention.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @lucastssa ,

    A column can't be two types, but you can certainly create a third that is a combination of the two. Are you able to create a test case, that would help understand the problem? Information on how to create a test case is available here.

    Cheers,

    Colin

This discussion has been closed.