ColumnControl - search with different order and search type

ColumnControl - search with different order and search type

spownspown Posts: 20Questions: 8Answers: 0

Link to test case: https://live.datatables.net/gezadipu/12/
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Is there any way to serach priority col as text not number and also order as number?

I found columnDefs like this, but i want to target search in menu, which still act as number

                    columnControl: {
                        target: 1,
                        content: ['searchText']
                    }

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,637Questions: 1Answers: 10,915 Site admin
    Answer ✓

    https://live.datatables.net/gezadipu/13/edit

    You'd just missed the columnControl property in the columnDefs object.

    Good point this - I'll see if I can improve the default handling for that.

    Allan

  • spownspown Posts: 20Questions: 8Answers: 0

    @Allan I think I might have found a bug.

    https://live.datatables.net/gezadipu/15/

    Try searching using "Contains" and type "normá".

    The Task column works correctly, but in Priority it returns no results. Or am I missing something?

  • allanallan Posts: 65,637Questions: 1Answers: 10,915 Site admin

    Looks like there be a normalisation error when working with the data attributes. I'll take a look into it.

    Allan

Sign In or Register to comment.