Search over orthogonal data not working

Search over orthogonal data not working

netpresentnetpresent Posts: 4Questions: 2Answers: 0

In the following simple case, I fill a datatable with orthogonal data for the name. One of the rows has a name containing Harry, which is in the data:

"name": {"display": "Tommy W.", "search": "Harry Winters"},

But if I type Harry into the search field, nothing is found.

What am I doing wrong here?

https://playak.com/tmp/datatablesscratch.php

Cheers,
Charona

Answers

  • kthorngrenkthorngren Posts: 20,425Questions: 26Answers: 4,794

    In your columns change the property name from search to filter, like this:

    { data: 'name', title: "Name", render: { _: 'display', filter: 'search', order: 'search'}},
    

    See the Orthogonal docs for the operation names.

    Kevin

  • netpresentnetpresent Posts: 4Questions: 2Answers: 0

    Thanks a lot Kevin!

This discussion has been closed.